Skip to content

Commit

Permalink
Correct the filepaths in unit test (#222)
Browse files Browse the repository at this point in the history
* point to the correct file and function

* Revert "point to the correct file and function"

This reverts commit 5714949.

* fix filepaths pointed to by the unit test
  • Loading branch information
niketagrawal authored Aug 21, 2024
1 parent 47292fe commit 6afe8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aeolis/tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class TestAeoLiSRunner:

def test_parse_callback_from_module(self):
"""Test if the callback function can be loaded from a file"""
runner = AeoLiSRunner("aeolis.txt")
callback = runner.parse_callback("callback_example.py:mock_callback")
runner = AeoLiSRunner("aeolis/tests/aeolis.txt")
callback = runner.parse_callback("aeolis/tests/callback_example.py:mock_callback")
assert callable(callback)
assert callback.__name__ == "mock_callback"
assert callback() == True
Expand Down

0 comments on commit 6afe8ee

Please sign in to comment.