Skip to content

Commit 77452a6

Browse files
Merge pull request #338 from microsoft/dev
chore: Merging dev changes to main
2 parents e5ac542 + fb5d638 commit 77452a6

22 files changed

Lines changed: 2395 additions & 13 deletions

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
if: env.skip_backend_tests == 'false'
113113
run: |
114114
cd src
115-
pytest --cov=. --cov-report=term-missing --cov-report=xml
115+
pytest tests/backend --cov=backend --cov-report=term-missing --cov-report=xml --cov-fail-under=80
116116
117117
118118

src/backend/pyproject.toml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,31 @@ line_length = 88
2424
testpaths = ["tests"] # Ensure this points to your test folder
2525
python_files = ["test_*.py", "*_test.py"] # Recognize test files
2626
python_classes = ["Test*"] # Recognize test classes
27-
python_functions = ["test_*"] # Recognize test functions
27+
python_functions = ["test_*"] # Recognize test functions
28+
asyncio_mode = "auto"
29+
30+
[tool.coverage.run]
31+
source = ["backend"]
32+
branch = true
33+
omit = [
34+
"*/tests/*",
35+
"*/__pycache__/*",
36+
"*/venv/*",
37+
]
38+
39+
[tool.coverage.report]
40+
fail_under = 80
41+
show_missing = true
42+
exclude_lines = [
43+
"pragma: no cover",
44+
"def __repr__",
45+
"raise NotImplementedError",
46+
"if __name__ == .__main__.:",
47+
"if TYPE_CHECKING:",
48+
]
49+
50+
[tool.pylint."messages control"]
51+
# C0411 disabled because flake8-import-order requires application imports before
52+
# third-party imports, which conflicts with pylint's default order. Since flake8
53+
# is used in CI, we follow its convention.
54+
disable = ["C0411"]

src/tests/backend/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# API tests package

0 commit comments

Comments
 (0)