From 08fdcf716206c76122436d39fa8c9ed7c9af53aa Mon Sep 17 00:00:00 2001 From: Hauke D Date: Tue, 15 Oct 2024 18:18:57 +0200 Subject: [PATCH] Minor fixes for other Python versions / OSes --- .devcontainer/initialize.sh | 0 dev/isolated-dist-test.sh | 0 dev/local-actions.sh | 0 tests/test_toa5.py | 5 +++++ 4 files changed, 5 insertions(+) mode change 100644 => 100755 .devcontainer/initialize.sh mode change 100644 => 100755 dev/isolated-dist-test.sh mode change 100644 => 100755 dev/local-actions.sh diff --git a/.devcontainer/initialize.sh b/.devcontainer/initialize.sh old mode 100644 new mode 100755 diff --git a/dev/isolated-dist-test.sh b/dev/isolated-dist-test.sh old mode 100644 new mode 100755 diff --git a/dev/local-actions.sh b/dev/local-actions.sh old mode 100644 new mode 100755 diff --git a/tests/test_toa5.py b/tests/test_toa5.py index c4f7545..b781461 100644 --- a/tests/test_toa5.py +++ b/tests/test_toa5.py @@ -167,6 +167,11 @@ def test_to_csv_cli(self): exit_call=(2, 'toa5.to_csv: error: Can only use --in-encoding when specifying an input file\n')) self._fake_cli(toa5.to_csv.main, argv=['-cLatin1'], stderr=None, exit_call=(2, 'toa5.to_csv: error: Can only use --out-encoding when specifying an output file\n')) + with NamedTempFileDeleteLater() as tf: + # just for coverage, a test with no data + tf.write(b"TOA5,sn,lm,ls,os,pn,ps,tn\nRECORD,BattV_Min\nRN,Volts\n,Min") + tf.close() + self.assertEqual( self._fake_cli(toa5.to_csv.main, argv=[tf.name]), ['RECORD,BattV_Min[V]'] ) with NamedTempFileDeleteLater() as tf: tf.write(b"TOA5,sn,lm,ls,os,pn,ps,tn\nRECORD,BattV_Min\nRN,Volts\n,Min\n1,12\n") tf.close()