Skip to content

Commit

Permalink
fix(templates): Update cookiecutter tests path (#1587)
Browse files Browse the repository at this point in the history
* update cookiecutter tests path

* more references to tests in subfolder

* Apply suggestions from code review

---------

Co-authored-by: Edgar R. M <edgar@meltano.com>
  • Loading branch information
pnadolny13 and edgarrmondragon authored Apr 10, 2023
1 parent 10a17a4 commit efb0b75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ poetry install

### Create and Run Tests

Create tests within the `{{ cookiecutter.library_name }}/tests` subfolder and
Create tests within the `tests` subfolder and
then run:

```bash
Expand Down
2 changes: 1 addition & 1 deletion cookiecutter/tap-template/{{cookiecutter.tap_id}}/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ commands =
poetry run isort --check {{cookiecutter.library_name}}
poetry run flake8 {{cookiecutter.library_name}}
# refer to mypy.ini for specific settings
poetry run mypy {{cookiecutter.library_name}} --exclude='{{cookiecutter.library_name}}/tests'
poetry run mypy . --exclude='tests'

[flake8]
docstring-convention = google
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ poetry install

### Create and Run Tests

Create tests within the `{{ cookiecutter.library_name }}/tests` subfolder and
Create tests within the `tests` subfolder and
then run:

```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ commands =
poetry run pytest
poetry run black --check {{cookiecutter.library_name}}/
poetry run flake8 {{cookiecutter.library_name}}
poetry run mypy {{cookiecutter.library_name}} --exclude='{{cookiecutter.library_name}}/tests'
poetry run mypy . --exclude='tests'

[testenv:pytest]
# Run the python tests.
Expand Down

0 comments on commit efb0b75

Please sign in to comment.