From 527309d580cf8ec4ded8d371c5998e9e9e4758ef Mon Sep 17 00:00:00 2001 From: fengzero Date: Fri, 13 Oct 2023 01:58:01 +0000 Subject: [PATCH] ft: rm modbus tcp --- tests/ft/modbus/__init__.py | 3 --- tests/ft/modbus/test_modbus_tcp.py | 20 -------------------- 2 files changed, 23 deletions(-) delete mode 100644 tests/ft/modbus/__init__.py delete mode 100644 tests/ft/modbus/test_modbus_tcp.py diff --git a/tests/ft/modbus/__init__.py b/tests/ft/modbus/__init__.py deleted file mode 100644 index 6da12771..00000000 --- a/tests/ft/modbus/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -import sys - -sys.path.append("tests/ft") diff --git a/tests/ft/modbus/test_modbus_tcp.py b/tests/ft/modbus/test_modbus_tcp.py deleted file mode 100644 index 7b58fb1e..00000000 --- a/tests/ft/modbus/test_modbus_tcp.py +++ /dev/null @@ -1,20 +0,0 @@ -import neuron.api as api -from neuron.common import * - - -@pytest.fixture(autouse=True, scope='class') -def simulator_setup_teardown(): - port = random_port() - p = process.start_simulator( - ['./modbus_simulator', 'tcp', f'{port}', 'ip_v4']) - - yield - process.stop_simulator(p) - - -class TestModbusTCP: - - @description(given="name and password", when="login", then="login success with token") - def test_login_success(self): - response = api.login() - assert 200 == response.status_code