Skip to content

Commit

Permalink
Try mocking on the the config_dir function as well
Browse files Browse the repository at this point in the history
  • Loading branch information
richford committed Sep 8, 2020
1 parent bfb173a commit 843c96d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudknot/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def aws_credentials():


@pytest.fixture(scope="function")
def tmp_cfg_dir():
@mock_all
def tmp_cfg_dir(aws_credentials):
old_cfg_file = os.environ.get("CLOUDKNOT_CONFIG_FILE")
temp_dir = tempfile.mkdtemp()
temp_name = os.path.join(temp_dir, "cloudknot")
Expand Down

0 comments on commit 843c96d

Please sign in to comment.