Skip to content

Commit

Permalink
fix in test
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonlopaciuk committed Mar 5, 2024
1 parent b532415 commit 32b2cde
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_prebuild_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,23 @@ def test_prebuild_kernels(mocker, tmp_path, temp_context_default_func, capsys):

def test_per_element_prebuild_kernels(mocker, tmp_path, temp_context_default_func):
# Set up the temporary kernels directory
kernel_definitions = {
"test_module": {
kernel_definitions = [
("test_module", {
"config": {},
"classes": [
xt.Drift,
xt.Cavity,
xt.XYShift,
]
},
"test_module_rand": {
}),
("test_module_rand", {
"config": {},
"classes": [],
"extra_classes": [
xt.RandomNormal,
]
},
}
}),
]

patch_defs = 'xtrack.prebuilt_kernels.kernel_definitions.kernel_definitions'
mocker.patch(patch_defs, kernel_definitions)
Expand Down

0 comments on commit 32b2cde

Please sign in to comment.