def test_boot_and_quit_with_resources(): server = Server() server.boot() server.add_buffer(1, 1024) server.add_bus("audio") server.add_bus("control") server.add_group() server.add_synth() server.quit()
def test_reset_and_reboot_with_resources(): server = Server() server.boot() server.add_buffer(1, 1024) server.add_bus("audio") server.add_bus("control") server.add_group() server.add_synth() server.reset() server.reboot() assert server.is_running
def test_reset(): server = Server() with pytest.raises(exceptions.ServerOffline): server.reset() server.boot() server.add_synthdef(default) server.add_synth() server.add_group() server.add_buffer(1, 1024) server.add_bus("audio") server.add_bus("control") assert default in server server.reset() assert server.is_running assert default not in server server.add_synthdef(default) assert default in server