Skip to content

Commit

Permalink
fix load_config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiCompositeNumber committed Sep 23, 2021
1 parent 248d02a commit 16c0dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_acnutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def test_load_config():
mock_dirname = mock.Mock(return_value="/foo/bar/baz.py")
with mock.patch("acnutils.open", mock_open):
with mock.patch("os.path.dirname", mock_dirname):
conf = acnutils.load_config("test")
conf = acnutils.load_config("test", __file__)

for i in range(1, 16):
assert i == conf.pop(str(i))
Expand All @@ -426,6 +426,6 @@ def test_load_config_nolocal():
mock_dirname = mock.Mock(return_value="/foo/bar/baz.py")
with mock.patch("acnutils.open", mock_open):
with mock.patch("os.path.dirname", mock_dirname):
conf = acnutils.load_config("test")
conf = acnutils.load_config("test", __file__)

assert conf["foo"] == "bar"

0 comments on commit 16c0dca

Please sign in to comment.