From 51373fac6e0c4cb5aa57c673e511fc3bb7bb91e3 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Mon, 6 Nov 2023 20:18:20 -0500 Subject: [PATCH] Drop unused and unwanted tests --- .fmf/version | 1 - plans/basic.fmf | 5 ----- tests/main.fmf | 5 ----- tests/test_appstream.py | 46 ----------------------------------------- 4 files changed, 57 deletions(-) delete mode 100644 .fmf/version delete mode 100644 plans/basic.fmf delete mode 100644 tests/main.fmf delete mode 100644 tests/test_appstream.py diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/plans/basic.fmf b/plans/basic.fmf deleted file mode 100644 index c1627f9..0000000 --- a/plans/basic.fmf +++ /dev/null @@ -1,5 +0,0 @@ -summary: Basic smoke test -discover: - how: fmf -execute: - how: tmt diff --git a/tests/main.fmf b/tests/main.fmf deleted file mode 100644 index dce9b1e..0000000 --- a/tests/main.fmf +++ /dev/null @@ -1,5 +0,0 @@ -require: -- appstream -- emoji-picker -test: python3 test_appstream.py -v -framework: shell diff --git a/tests/test_appstream.py b/tests/test_appstream.py deleted file mode 100644 index 00e014c..0000000 --- a/tests/test_appstream.py +++ /dev/null @@ -1,46 +0,0 @@ -import unittest -import sys -import subprocess - -class TestAppstream(unittest.TestCase): - - def test_dummy(self): - self.assertEqual(True, True) - - @unittest.expectedFailure - def test_expected_failure(self): - self.assertEqual(False, True) - - def test_appstreamcli_search(self): - cp = subprocess.run( - ['env LC_ALL=en_US.UTF-8 appstreamcli search emoji-picker'], - encoding='UTF-8', - text=True, - shell=True, - capture_output=True) - output_lines = cp.stdout.split('\n') - print('----------------------------------------') - print(output_lines) - print('----------------------------------------') - self.assertTrue( - 'Identifier: org.freedesktop.ibus.engine.typing_booster.emoji_picker [desktop-application]' - in output_lines) - self.assertTrue( - 'Name: Emoji Picker' - in output_lines) - self.assertTrue( - 'Summary: Emoji browsing tool' - in output_lines) - self.assertTrue( - 'Homepage: https://mike-fabian.github.io/ibus-typing-booster/' - in output_lines) - self.assertTrue( - 'Icon: ibus-typing-booster.png' - in output_lines) - # This section not always there, better don’t test for this: - # self.assertTrue( - # 'Package: emoji-picker' - # in output_lines) - -if __name__ == "__main__": - unittest.main()