Skip to content

Commit

Permalink
Refactor tests to be separated from application code
Browse files Browse the repository at this point in the history
Closes: #302
  • Loading branch information
tatiana committed Jun 6, 2023
1 parent 1f118ec commit c071619
Show file tree
Hide file tree
Showing 28 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[run]
omit =
*/test_*
cosmos/tests/utils.py
tests/*
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ matrix.airflow.dependencies = [
[tool.hatch.envs.tests.scripts]
freeze = "pip freeze"
test = 'pytest -vv --durations=0 . -m "not integration"'
test-cov = 'pytest -vv --cov=cosmos --cov-report=term-missing --cov-report=xml --durations=0 . -m "not integration"'
test-cov = 'pytest -vv --cov=cosmos --cov-report=term-missing --cov-report=xml --durations=0 -m "not integration"'
test-integration = "pytest -vv --cov=cosmos --cov-report=term-missing --cov-report=xml --durations=0 -m integration"

######################################
Expand Down
File renamed without changes.
File renamed without changes.
Empty file added tests/core/__init__.py
Empty file.
File renamed without changes.
Empty file added tests/providers/__init__.py
Empty file.
Empty file added tests/providers/dbt/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from . import utils as test_utils

EXAMPLE_DAGS_DIR = Path(__file__).parent.parent.parent / "dev/dags"
EXAMPLE_DAGS_DIR = Path(__file__).parent.parent / "dev/dags"
EXAMPLE_CONN_FILE = Path(__file__).parent / "test-connections.yaml"
AIRFLOW_IGNORE_FILE = EXAMPLE_DAGS_DIR / ".airflowignore"

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c071619

Please sign in to comment.