Skip to content

Commit

Permalink
further test adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
richardtief committed Sep 29, 2020
1 parent fa3766d commit 4f71c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCollectorInit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class TestCollectorInitialization(TestCase):
os.environ['TARGET'] = 'testhost.test'
os.environ.setdefault('TARGET', 'testhost.test')
@patch('BaseCollector.BaseCollector.wait_for_inventory_data')
def test_valid_collector2(self, mocked_wait):
mocked_wait.return_value = None
Expand Down
1 change: 1 addition & 0 deletions tests/TestCollectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@


class TestCollectors(unittest.TestCase):
os.environ.setdefault('TARGET', 'testhost.test')
def test_environment(self):
self.assertTrue(os.getenv('USER'), 'no dummy USER set')
self.assertTrue(os.getenv('PASSWORD'), 'no dummy PASSWORD set')
Expand Down

0 comments on commit 4f71c82

Please sign in to comment.