From ba545be25d5dbce161af146918e3f521a6507e1c Mon Sep 17 00:00:00 2001 From: Olle Hansson <olle.hansson@liu.se> Date: Fri, 24 Feb 2023 16:39:48 +0100 Subject: [PATCH] Renamed test file --- test/test_signal_generator.py | 2 +- test/test_signal_generator/bad.csv | 2 ++ test/test_signal_generator/test.py | 25 ------------------------- 3 files changed, 3 insertions(+), 26 deletions(-) create mode 100644 test/test_signal_generator/bad.csv delete mode 100644 test/test_signal_generator/test.py diff --git a/test/test_signal_generator.py b/test/test_signal_generator.py index 4f9d02c8..b086ff06 100644 --- a/test/test_signal_generator.py +++ b/test/test_signal_generator.py @@ -284,4 +284,4 @@ def test_fromfile(datadir): g = FromFile(datadir.join('tset.py')) with pytest.raises(ValueError, match="could not convert string"): - g = FromFile(datadir.join('test.py')) + g = FromFile(datadir.join('bad.csv')) diff --git a/test/test_signal_generator/bad.csv b/test/test_signal_generator/bad.csv new file mode 100644 index 00000000..94f8f3c9 --- /dev/null +++ b/test/test_signal_generator/bad.csv @@ -0,0 +1,2 @@ +0 +a diff --git a/test/test_signal_generator/test.py b/test/test_signal_generator/test.py deleted file mode 100644 index 147e61fc..00000000 --- a/test/test_signal_generator/test.py +++ /dev/null @@ -1,25 +0,0 @@ -""" -B-ASIC automatically generated SFG file. -Name: test -Last saved: 2023-02-15 16:45:16.836909. -""" -from b_asic import SFG, Delay, Input, Output, Signal - -# Inputs: -in1 = Input(name="") - -# Outputs: -out1 = Output(name="") - -# Operations: -t1 = Delay(name="") - -# Signals: - -Signal(source=t1.output(0), destination=out1.input(0)) -Signal(source=in1.output(0), destination=t1.input(0)) -test = SFG(inputs=[in1], outputs=[out1], name='test') - -# SFG Properties: -prop = {'name': test} -positions = {'t1': (114, 38, False), 'in1': (-57, 38, False), 'out1': (304, 38, False)} -- GitLab