Ejemplo n.º 1
0
def test_thrusters_run_1():
    object = Thrusters(TEST1)
    output, phases = object.get_best_output()
    assert output == 43210
    assert phases == [4, 3, 2, 1, 0]
Ejemplo n.º 2
0
def test_thrusters_run_2():
    object = Thrusters(TEST2)
    output, phases = object.get_best_output()
    assert output == 54321
    assert phases == [0, 1, 2, 3, 4]
Ejemplo n.º 3
0
def test_thrusters_values():
    object = Thrusters(TEST1)
    for value in object.amps:
        assert isinstance(value, Amplifier)
        assert value.software == TEST1
    assert object.phases == [0, 1, 2, 3, 4]
Ejemplo n.º 4
0
def test_thrusters_create():
    object = Thrusters(TEST1)
    assert isinstance(object, Thrusters)
Ejemplo n.º 5
0
def test_thrusters_feedback_run_2():
    object = Thrusters(FEEDBACK_TEST2)
    output, phases = object.get_best_feedback_output()
    assert output == 18216
    assert phases == [9, 7, 8, 5, 6]
Ejemplo n.º 6
0
def test_thrusters_feedback_run_1():
    object = Thrusters(FEEDBACK_TEST1)
    output, phases = object.get_best_feedback_output()
    assert output == 139629729
    assert phases == [9, 8, 7, 6, 5]
Ejemplo n.º 7
0
def test_thrusters_run_3():
    object = Thrusters(TEST3)
    output, phases = object.get_best_output()
    assert output == 65210
    assert phases == [1, 0, 4, 3, 2]