Skip to content

Commit

Permalink
fix: test feature copies repo from session feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahCFisher authored and shaunc committed Feb 23, 2022
1 parent 18786c3 commit c834cce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ def fix_dvc_repo_session() -> DvcRepo:

@fixture(name="dvc_repo")
def fix_dvc_repo(dvc_repo_session) -> DvcRepo:
return # take the repo from^ this and make a copy
subprocess.check_call(
f"cp -r {dvc_repo_session.root_dir} {dvc_repo_session.root_dir}_1",
shell=True,
)
dvc_repo_session.root_dir += "_1"
return dvc_repo_session
4 changes: 2 additions & 2 deletions tests/test_demo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import kedro_dvc


def test_demo(dvc_repo_session):
assert kedro_dvc is None
def test_demo(dvc_repo):
assert kedro_dvc is not None

0 comments on commit c834cce

Please sign in to comment.