mirror of
https://github.com/jopohl/urh.git
synced 2021-05-12 19:42:18 +03:00
update requirements (#821)
This commit is contained in:
committed by
GitHub
parent
3a92538015
commit
e9bb586e3d
@@ -174,9 +174,7 @@ jobs:
|
||||
condition: or(contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['python.arch'], 'x64'))
|
||||
displayName: "Create setup.exe"
|
||||
|
||||
- script: |
|
||||
cd pyinstaller\urh
|
||||
urh_debug.exe autoclose
|
||||
- powershell: .\pyinstaller\urh\urh_debug.exe autoclose
|
||||
condition: or(contains(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['python.arch'], 'x64'))
|
||||
displayName: "Test urh_debug.exe"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
numpy>=1.9; sys_platform != 'win32'
|
||||
numpy>=1.9,!=1.16.0; sys_platform == 'win32'
|
||||
numpy>=1.9,!=1.16.0,!=1.19.4; sys_platform == 'win32'
|
||||
pyqt5; sys_platform != 'win32'
|
||||
pyqt5!=5.14.2; sys_platform == 'win32'
|
||||
psutil
|
||||
|
||||
@@ -463,8 +463,7 @@ class Simulator(QObject):
|
||||
if len(sniffer.messages) > 0:
|
||||
return sniffer.messages.pop(0)
|
||||
|
||||
spy = QSignalSpy(sniffer.message_sniffed)
|
||||
if spy.wait(self.project_manager.simulator_timeout_ms):
|
||||
if QSignalSpy(sniffer.message_sniffed).wait(self.project_manager.simulator_timeout_ms):
|
||||
try:
|
||||
return sniffer.messages.pop(0)
|
||||
except IndexError:
|
||||
|
||||
@@ -66,7 +66,6 @@ class TestSimulator(QtTestCase):
|
||||
self.alice.client_port = port
|
||||
|
||||
dialog = self.form.simulator_tab_controller.get_simulator_dialog() # type: SimulatorDialog
|
||||
dialog.project_manager.simulator_timeout_ms = 999999999
|
||||
|
||||
name = NetworkSDRInterfacePlugin.NETWORK_SDR_NAME
|
||||
dialog.device_settings_rx_widget.ui.cbDevice.setCurrentText(name)
|
||||
@@ -169,8 +168,6 @@ class TestSimulator(QtTestCase):
|
||||
stc.ui.btnAddParticipant.click()
|
||||
stc.ui.btnAddParticipant.click()
|
||||
|
||||
stc.project_manager.simulator_timeout_ms = 999999999
|
||||
|
||||
stc.simulator_scene.add_counter_action(None, 0)
|
||||
action = next(item for item in stc.simulator_scene.items() if isinstance(item, CounterActionItem))
|
||||
action.model_item.start = 3
|
||||
|
||||
@@ -327,7 +327,7 @@ class TestSimulatorTabGUI(QtTestCase):
|
||||
|
||||
self.assertEqual(stc.ui.goto_combobox.count(), 5 + 1) # select item... also in combobox
|
||||
|
||||
def test_open_simulator_dialog_and_send_mismatching_message(self):
|
||||
def test_open_simulator_dialog_and_send_message(self):
|
||||
def __wait_for_simulator_log_message(dialog, log_message):
|
||||
|
||||
n = 0
|
||||
@@ -345,7 +345,6 @@ class TestSimulatorTabGUI(QtTestCase):
|
||||
self.add_all_signals_to_simulator()
|
||||
|
||||
stc.simulator_scene.select_all_items()
|
||||
stc.simulator_config.project_manager.simulator_timeout_ms = 999999999
|
||||
|
||||
for msg in stc.simulator_scene.get_selected_messages():
|
||||
msg.destination = self.dennis
|
||||
@@ -379,20 +378,10 @@ class TestSimulatorTabGUI(QtTestCase):
|
||||
sender.send_raw_data(IQArray(None, np.float32, 2000), 1)
|
||||
time.sleep(0.5)
|
||||
|
||||
__wait_for_simulator_log_message(dialog, "Waiting for message 2")
|
||||
|
||||
sender.send_raw_data(modulator.modulate("10" * 176), 1)
|
||||
time.sleep(0.5)
|
||||
sender.send_raw_data(IQArray(None, np.float32, 2000), 1)
|
||||
time.sleep(0.5)
|
||||
|
||||
__wait_for_simulator_log_message(dialog, "Mismatch for label:")
|
||||
|
||||
dialog.on_timer_timeout() # enforce writing to text view
|
||||
simulator_log = dialog.ui.textEditSimulation.toPlainText()
|
||||
self.assertIn("Received message 1", simulator_log)
|
||||
self.assertIn("preamble: 11111111", simulator_log)
|
||||
self.assertIn("Mismatch for label: preamble", simulator_log)
|
||||
|
||||
dialog.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user