Skip to content

Commit

Permalink
Fixup test_cli.py - update sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
anjensan committed Jun 7, 2021
1 parent df316c8 commit 112a0cf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions test/cli/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from logging import shutdown
from mock.mock import _set_return_value
from bigflow.build.operate import build_project
from unittest import TestCase
import itertools
import mock
import shutil
import freezegun

from bigflow.testing.isolate import ForkIsolateMixin
from bigflow.cli import *

from test import mixins
Expand All @@ -16,12 +15,14 @@

class CliTestCase(
mixins.PrototypedDirMixin,
ForkIsolateMixin,
TestCase,
):
proto_dir = "bf-projects/example_project"

def setUp(self) -> None:
super().setUp()
sys.path.append(str(Path(__file__).parent))

self.project_setuppy = self.cwd / "setup.py"

Expand All @@ -30,12 +31,6 @@ def setUp(self) -> None:

bigflow.build.spec.get_project_spec.cache_clear()

def tearDown(self):
try:
import_module("test_module.Unused1").started_jobs.clear()
except ImportError:
pass

def test_should_walk_through_all_files_inside_package_tree(self):
# when
res = walk_module_files(TEST_MODULE_PATH)
Expand Down

0 comments on commit 112a0cf

Please sign in to comment.