Skip to content

Commit

Permalink
Change dot to double underscores in functions loader tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
MImmesberger committed Dec 8, 2024
1 parent f34c2d5 commit 1f78edd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/_gettsim_tests/test_functions_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def test_special_attribute_module_is_set_for_internal_functions():
RESOURCE_DIR,
)
function = next(iter(a_few_functions))
assert function.__module__ == "_gettsim.social_insurance_contributions.eink_grenzen"
assert (
function.__module__ == "_gettsim__social_insurance_contributions__eink_grenzen"
)


@pytest.mark.parametrize(
Expand Down Expand Up @@ -146,8 +148,8 @@ def test_vectorize_func(function: Callable) -> None:
[
PolicyFunction(lambda: 1, module_name="a", function_name="foo"),
PolicyFunction(lambda: 1, module_name="a", function_name="bar"),
PolicyFunction(lambda: 3, module_name="a.b", function_name="foo"),
PolicyFunction(lambda: 4, module_name="a.b.c", function_name="foo"),
PolicyFunction(lambda: 3, module_name="a__b", function_name="foo"),
PolicyFunction(lambda: 4, module_name="a__b__c", function_name="foo"),
PolicyFunction(lambda: 2, module_name="b", function_name="foo"),
],
{
Expand Down

0 comments on commit 1f78edd

Please sign in to comment.