Skip to content

Commit

Permalink
Adjust test inputs for proper GETTSIM params.
Browse files Browse the repository at this point in the history
  • Loading branch information
MImmesberger committed Dec 8, 2024
1 parent 1f78edd commit f2851f5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
13 changes: 9 additions & 4 deletions src/_gettsim_tests/test_data/namespaces/module1.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
"""Test namespace."""


def f(a, b):
return a + b
def f(module1_params, h): # noqa: ARG001
return module1_params["a"] + module1_params["b"]


def g(f, c):
return f + c
def g(f, module1_params):
return f + module1_params["c"]


def h():
return 1


FUNCTIONS_MODULE1 = {
"module1": {
"f": f,
"g": g,
"h": h,
}
}
8 changes: 4 additions & 4 deletions src/_gettsim_tests/test_data/namespaces/module2.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Test namespace."""


def f(a, b):
return a + b
def f(module2_params, g): # noqa: ARG001
return module2_params["a"] + module2_params["b"]


def g(module1__f, c):
return module1__f + c
def g(module1__f, module2_params):
return module1__f + module2_params["c"]


FUNCTIONS_MODULE2 = {
Expand Down
4 changes: 2 additions & 2 deletions src/_gettsim_tests/test_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
}

PARAMETERS = {
"module1": {
"module1_params": {
"a": 1,
"b": 1,
"c": 1,
},
"module2": {
"module2_params": {
"a": 1,
"b": 1,
"c": 1,
Expand Down

0 comments on commit f2851f5

Please sign in to comment.