Skip to content

Commit

Permalink
edit to unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgiuliani committed May 17, 2024
1 parent 6890be8 commit 8be1c50
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/geo/test_boozersurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,18 @@ def test_run_code(self):
# this second time should not actually run
boozer_surface.run_code(boozer_surface.res['iota'], G=boozer_surface.res['G'])

for c in bs.coils:
c.current.fix_all()

boozer_surface.need_to_run_code=True
# run without providing value of G
boozer_surface.run_code(boozer_surface.res['iota'])

bs, boozer_surface = get_boozer_surface(boozer_type='exact')
boozer_surface.run_code(boozer_surface.res['iota'], G=boozer_surface.res['G'])

# this second time should not actually run
boozer_surface.run_code(boozer_surface.res['iota'], G=boozer_surface.res['G'])

boozer_surface.need_to_run_code=True
# run without providing value of G
boozer_surface.run_code(boozer_surface.res['iota'])

def test_convergence_cpp_and_notcpp_same(self):
"""
Expand Down

0 comments on commit 8be1c50

Please sign in to comment.