Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
silkaj
silkaj
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 108
    • Issues 108
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • clients
  • python
  • silkajsilkaj
  • Issues
  • #241

Closed
Open
Opened Jul 28, 2019 by Moul@moul
  • Report abuse
  • New issue
Report abuse New issue

Can not run test with Click utility

We are currently using subprocess.check_output for testing the CLI. It does work fine.

To set-up the CI, subprocess is calling to silkaj from the shell PATH. As it is not defined in the Docker image, it does not work. For, now, I propose to call poetry run silkaj sub-cmd to by-pass next issue.

But if we want to use Click helper to test the CLI, for extra features such as tests on the terminal size, it does not work. It is due to the aiohttp session which gets closed by the first test closing the session. Then other tests get this closed session because of the singleton. It looks like Click test utility does not restart from a clean context.

Edited Jul 28, 2019 by Moul
Assignee
Assign to
0.8.0
Milestone
0.8.0
Assign milestone
Time tracking
None
Due date
None
2
Labels
Bug Test
Assign labels
  • View project labels
Reference: clients/python/silkaj#241