Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Apr 5, 2024
1 parent 5af811f commit fcf9386
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/helpers/test_package_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from ..commands.run.util import create_ins
from ..fixtures import *
from tests import util
from sinol_make.helpers import package_util
from sinol_make.helpers import package_util, func_cache


@pytest.mark.parametrize("create_package", [util.get_long_name_package_path()], indirect=True)
Expand All @@ -12,6 +12,7 @@ def test_get_task_id(create_package):
assert package_util.get_task_id() == "lpn"
with open(os.path.join(package_path, "config.yml"), "w") as config_file:
config_file.write("title: Long package name\n")
func_cache.clear_cache()
with pytest.raises(SystemExit):
package_util.get_task_id()

Expand Down

0 comments on commit fcf9386

Please sign in to comment.