Skip to content

Commit

Permalink
refactor: remove async unit test nox session (#112)
Browse files Browse the repository at this point in the history
* refactor: remove async unit test nox session

* refactor: remove async unit test directory

* fix: noxfile unit test imports and arglist
  • Loading branch information
rafilong committed Jul 17, 2020
1 parent d07d4da commit c758c29
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 25 deletions.
15 changes: 3 additions & 12 deletions noxfile.py
Expand Up @@ -68,9 +68,9 @@ def lint_setup_py(session):
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")


def default(session, test_dir, ignore_dir):
def default(session, test_dir, ignore_dir=None):
# Install all test dependencies, then install this package in-place.
session.install("asyncmock", "pytest-asyncio")
session.install("asyncmock", "pytest-asyncio", "aiounittest")

session.install("mock", "pytest", "pytest-cov")
session.install("-e", ".")
Expand Down Expand Up @@ -99,19 +99,10 @@ def default(session, test_dir, ignore_dir):
def unit(session):
"""Run the unit test suite for sync tests."""
default(
session,
os.path.join("tests", "unit"),
os.path.join("tests", "unit", "v1", "async"),
session, os.path.join("tests", "unit"),
)


@nox.session(python=["3.6", "3.7", "3.8"])
def unit_async(session):
"""Run the unit test suite for async tests."""
session.install("pytest-asyncio", "aiounittest")
default(session, os.path.join("tests", "unit", "v1", "async"), None)


@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
def system(session):
"""Run the system test suite."""
Expand Down
13 changes: 0 additions & 13 deletions tests/unit/v1/async/__init__.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c758c29

Please sign in to comment.