@@ -0,0 +1,1516 @@
+import numpy as np%0Aimport pytest%0Afrom simulators.fake_simulator import main as fake_main%0Afrom simulators.fake_simulator import parse_args%0A%0A%0Adef test_fake_simulator_parser():%0A    parsed = parse_args(%5B%22HD30501%22, %2201%22, %22-p%22, %222300, 4.5, -3.0%22, %22--params2%22, %222100, 3.5, 0.0%22, %22-g%22, %2210%22%5D)%0A    assert parsed.star == %22HD30501%22%0A    assert parsed.sim_num == %2201%22%0A    assert parsed.params1 == %222300, 4.5, -3.0%22%0A    assert parsed.params2 == %222100, 3.5, 0.0%22%0A    assert parsed.gamma == 10%0A    assert parsed.rv is None%0A    assert isinstance(parsed.gamma, float)%0A    assert parsed.replace is False%0A    assert parsed.noplots is False%0A    assert parsed.test is False%0A    assert parsed.mode == %22iam%22%0A    assert parsed.noise is None%0A%0A%0Adef test_fake_simulator_parser_toggle():%0A    parsed = parse_args(%5B%22HDTEST%22, %2202%22, %22-t%22, %22-r%22, '-v', %2210%22, %22-m%22, %22bhm%22, %22-s%22, %22100%22, %22-n%22%5D)%0A%0A    assert parsed.star == %22HDTEST%22%0A    assert parsed.sim_num == %2202%22%0A    assert parsed.params1 is None%0A    assert parsed.params2 is None%0A    assert parsed.rv == 10%0A    assert parsed.gamma is None%0A    assert parsed.replace is True%0A    assert parsed.noplots is True%0A    assert parsed.test is True%0A    assert parsed.mode == %22bhm%22%0A    assert parsed.noise == %22100%22%0A%0A%0Adef test_fake_sim_main_with_no_params1_returns_error():%0A    with pytest.raises(ValueError):%0A        fake_main(%22hdtest%22, 1, params1=None, params2=%5B5800, 4.0, -0.5%5D, rv=7, gamma=5, mode=%22iam%22)%0A%0A    with pytest.raises(ValueError):%0A        fake_main(%22hdtest2%22, 2, params1=None, gamma=7, mode=%22bmh%22)%0A%0A

Test fake simulator parser.