From 0e866178d7c94f385c2ee5629293c0b32ecd2c9c Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 8 Jun 2015 13:46:04 -0400 Subject: [PATCH] create license file that allows system tracking when running system tracking functional tests --- awx/main/tests/commands/cleanup_facts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/main/tests/commands/cleanup_facts.py b/awx/main/tests/commands/cleanup_facts.py index 2e397b201b..53f4b29187 100644 --- a/awx/main/tests/commands/cleanup_facts.py +++ b/awx/main/tests/commands/cleanup_facts.py @@ -21,6 +21,7 @@ __all__ = ['CommandTest','CleanupFactsUnitTest', 'CleanupFactsCommandFunctionalT class CleanupFactsCommandFunctionalTest(BaseCommandMixin, BaseTest, MongoDBRequired): def setUp(self): super(CleanupFactsCommandFunctionalTest, self).setUp() + self.create_test_license_file() self.builder = FactScanBuilder() self.builder.add_fact('ansible', TEST_FACT_ANSIBLE) @@ -55,6 +56,10 @@ class CleanupFactsCommandFunctionalTest(BaseCommandMixin, BaseTest, MongoDBRequi self.assertEqual(stdout, 'Deleted 25 facts.\n') class CommandTest(BaseTest): + def setUp(self): + super(CommandTest, self).setUp() + self.create_test_license_file() + @mock.patch('awx.main.management.commands.cleanup_facts.CleanupFacts.run') def test_parameters_ok(self, run):