Skip to content

Commit

Permalink
make sure no repo data for repofromdir option test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkurth committed Oct 31, 2022
1 parent e2a9523 commit b562d10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytests/tests/test_repofrompath.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

@pytest.fixture(scope='function', autouse=True)
def setup_test(utils):
create_repo(utils)
yield
teardown_test(utils)

Expand Down Expand Up @@ -56,6 +55,8 @@ def test_repofrompath_created_repo(utils):
reponame = 'photon-test'
synced_dir = os.path.join(workdir, reponame)

create_repo(utils)

ret = utils.run(['tdnf',
'--repofrompath=synced-repo,{}'.format(synced_dir),
'--repo=synced-repo',
Expand All @@ -82,6 +83,8 @@ def test_repofrompath_cmdline_repo(utils):
reponame = 'photon-test'
synced_dir = os.path.join(workdir, reponame)

create_repo(utils)

pkgname = utils.config["mulversion_pkgname"]
utils.erase_package(pkgname)

Expand Down

0 comments on commit b562d10

Please sign in to comment.