Code Duplication    Length = 19-19 lines in 3 locations

tests/test_main.py 3 locations

@@ 114-132 (lines=19) @@
111
                test_passed = False
112
        self.assertTrue(test_passed)
113
114
    def test_export_only(self):
115
        """Test to show that only export option works"""
116
        arguments = Namespace(
117
            files=['./ExamplePhotos/32-lens_data.jpeg'],
118
            loglevel=30,
119
            alphabetic=False,
120
            no_open=True,
121
            export_only=True,
122
            test=True,
123
            export="png",
124
            output="metastalk_exports")
125
        metastalk = main.MetaStalk()
126
        metastalk.run(arguments)
127
        test_passed = True
128
        for required_file in self.filenames:
129
            if not os.path.isfile(f"metastalk_exports/{required_file}.png"):
130
                print(f"missing file {required_file}")
131
                test_passed = False
132
        self.assertTrue(test_passed)
133
@@ 94-112 (lines=19) @@
91
                test_passed = False
92
        self.assertTrue(test_passed)
93
94
    def test_orca_export(self):
95
        """Test for export fail."""
96
        test_passed = True
97
        arguments = Namespace(
98
            files=['./ExamplePhotos/'],
99
            loglevel=30,
100
            test=True,
101
            alphabetic=False,
102
            export_only=False,
103
            no_open=True,
104
            export="pdf",
105
            output="metastalk_exports")
106
        metastalk = main.MetaStalk()
107
        metastalk.run(arguments)
108
        for required_file in self.filenames:
109
            if not os.path.isfile(f"metastalk_exports/{required_file}.pdf"):
110
                print(f"missing file {required_file}")
111
                test_passed = False
112
        self.assertTrue(test_passed)
113
114
    def test_export_only(self):
115
        """Test to show that only export option works"""
@@ 52-70 (lines=19) @@
49
        metastalk = main.MetaStalk()
50
        self.assertEqual(metastalk.run(arguments), None)
51
52
    def test_html_export(self):
53
        """Test to see html files got exported."""
54
        arguments = Namespace(
55
            files=['./ExamplePhotos/22-canon_tags.jpg', './ExamplePhotos/32-lens_data.jpeg'],
56
            loglevel=30,
57
            alphabetic=False,
58
            no_open=True,
59
            export_only=False,
60
            test=True,
61
            export="html",
62
            output="metastalk_exports")
63
        metastalk = main.MetaStalk()
64
        metastalk.run(arguments)
65
        test_passed = True
66
        for required_file in self.filenames:
67
            if not os.path.isfile(f"metastalk_exports/{required_file}.html"):
68
                print(f"missing file {required_file}")
69
                test_passed = False
70
        self.assertTrue(test_passed)
71
72
    def test_html_size(self):
73
        """Test to see html that the offline html files are bigger"""