Skip to content

Commit

Permalink
cases: move test cases to avatar module
Browse files Browse the repository at this point in the history
  • Loading branch information
uael committed Sep 29, 2023
1 parent 5a8736c commit afc7211
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/avatar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ jobs:
run: |
pip install --upgrade pip
pip install .[dev]
- run: black --check avatar/ cases/
- run: isort --check avatar/ cases/
- run: black --check avatar/
- run: isort --check avatar
test:
name: Test Bumble vs Bumble(s) [${{ matrix.shard }}]
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion avatar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def main(args: Optional[argparse.Namespace] = None) -> None:
if argv.verbose:
runner.set_logs_verbose()
if not argv.no_default_cases:
runner.add_path(pathlib.Path(__file__).resolve().parent.parent / 'cases')
runner.add_path(pathlib.Path(__file__).resolve().parent / 'cases')

# List tests to standard output.
if argv.list:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dev = [
name = "avatar"

[tool.flit.sdist]
include = ["cases/", "doc/"]
include = ["doc/"]

[tool.black]
line-length = 119
Expand All @@ -56,7 +56,7 @@ force_single_line = true
single_line_exclusions = ["typing", "typing_extensions", "collections.abc"]

[tool.pyright]
include = ["avatar", "cases"]
include = ["avatar"]
exclude = ["**/__pycache__", "**/*_pb2.py"]
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
Expand All @@ -69,7 +69,7 @@ reportPrivateUsage = false
[tool.mypy]
strict = true
warn_unused_ignores = false
files = ["avatar", "cases"]
files = ["avatar"]

[[tool.mypy.overrides]]
module = "grpc.*"
Expand All @@ -88,7 +88,7 @@ module = "portpicker.*"
ignore_missing_imports = true

[tool.pytype]
inputs = ['avatar', 'cases']
inputs = ['avatar']

[build-system]
requires = ["flit_core==3.7.1"]
Expand Down

0 comments on commit afc7211

Please sign in to comment.