Skip to content

Commit 18e9eca

Browse files
committed
Remove duplicated modular input kind tests
This change removes two occurrences of the same test and consolidates it into test_modular_input_kinds.py
1 parent 27af330 commit 18e9eca

File tree

3 files changed

+7
-70
lines changed

3 files changed

+7
-70
lines changed

tests/integration/test_input.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -231,20 +231,6 @@ def test_list(self):
231231
for input in input_list:
232232
self.assertTrue(input.name is not None)
233233

234-
@pytest.mark.app
235-
def test_lists_modular_inputs(self):
236-
# Install modular inputs to list, and restart
237-
# so they'll show up.
238-
self.install_app_from_collection("modular_inputs")
239-
self.uncheckedRestartSplunk()
240-
241-
inputs = self.service.inputs
242-
if ("abcd", "test2") not in inputs:
243-
inputs.create("abcd", "test2", field1="boris")
244-
245-
input = inputs["abcd", "test2"]
246-
self.assertEqual(input.field1, "boris")
247-
248234
def test_create(self):
249235
inputs = self.service.inputs
250236
for entity in self._test_entities.values():

tests/integration/test_modular_input.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

tests/integration/test_modular_input_kinds.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ def test_list_modular_inputs(self):
8181
# Not implemented before 5.0
8282
return
8383

84+
inputs = self.service.inputs
85+
if ("abcd", "test2") not in inputs:
86+
inputs.create("abcd", "test2", field1="boris")
87+
88+
input = inputs["abcd", "test2"]
89+
self.assertEqual(input.field1, "boris")
90+
8491
for m in self.service.modular_input_kinds:
8592
self.check_modular_input_kind(m)
8693

0 commit comments

Comments
 (0)