desy-ml / cheetah

Fast and differentiable particle accelerator optics simulation for reinforcement learning and optimisation applications.
https://cheetah-accelerator.readthedocs.io
GNU General Public License v3.0
28 stars 13 forks source link

Add pytest fixtures #44

Closed jank324 closed 10 months ago

jank324 commented 1 year ago

The test files as they currently are have a lot of global variables in them. pytest offers a more elegant way of achieving the same using fixtures. We should improve the test files in that regard

jank324 commented 10 months ago

Tests have been reworked since this was opened.