Skip to content

Commit

Permalink
Fix concurrency for coverage in pyproject.toml (#288)
Browse files Browse the repository at this point in the history
### Description

The coverage tool does not automatically mark as covered the functions
that use greenlet, so all the functions that used sqlalchemy were
incorrectly marked as not covered.
This PR adds the relevant option in pyproject.toml.
  • Loading branch information
Pokegali authored Nov 9, 2023
1 parent c1d2168 commit 59c79b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ omit = [
"mailworker.py", # We don't use send mails during tests
"*matrix*", # We don't send logs to matrix during tests
]
concurrency = [
"thread",
"greenlet",
] # Tell the tool that we also use greenlet, because sqlalchemy does


[tool.coverage.report]
Expand Down

0 comments on commit 59c79b6

Please sign in to comment.