Skip to content

Commit

Permalink
Testing against the build package not the source.
Browse files Browse the repository at this point in the history
Since there was an `__init__.py` file in `tests`, the local source code was loading and not the whisk package we want to test. Removed this and adjusted some imports so tox tests the actual package and not the source code.

Background: tox-dev/tox#514 (comment)
  • Loading branch information
itsderek23 committed May 4, 2020
1 parent 9327354 commit 05c12b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,6 @@ ENV/

# Private notes
TODO.md

# pytest results
test_results
1 change: 0 additions & 1 deletion tests/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import shutil
from pathlib import Path
from cookiecutter import main
import whisk
from whisk.whisk import cookiecutter_template_dir

args = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pytest
import datetime as dt
from subprocess import check_output, CalledProcessError
from tests.conftest import system_check
from conftest import system_check


def no_curlies(filepath):
Expand Down

0 comments on commit 05c12b6

Please sign in to comment.