Skip to content

Commit 730d42a

Browse files
committed
Fixing test_madx_import for the test_zero_error
1 parent ef63efd commit 730d42a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_madx_import.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def test_error_functionality():
412412

413413

414414
def test_zero_errors():
415-
# check that zero-errors are loaded without erro
415+
# check that zero-errors are loaded without error
416416
cpymad_spec = util.find_spec("cpymad")
417417
if cpymad_spec is None:
418418
print("cpymad is not available - abort test")
@@ -429,6 +429,8 @@ def test_zero_errors():
429429
qf, at = 0.6;
430430
endsequence;
431431
''')
432+
madx.beam()
433+
madx.use('testseq')
432434
madx.select(flag='error', pattern='qf')
433435
madx.command.efcomp(
434436
dkn=[0, 0, 0, 0, 0.0, 0.0, 0.0],

0 commit comments

Comments
 (0)