Example #1
0
 def setUp(self):
     self.projects = [
         ProjectFactory(name="proj1"),
         ProjectFactory(name="proj2")
     ]
     self.CLI = cli.CLI("blocks")
     sys.stdout = self.out = StringIO()
Example #2
0
 def setUp(self):
     self.deployments = [
         # dict(
         #     package=,
         #     environment=,
         #     by_apptype=[dict(
         #         current_app_deployment=,
         #         previous_app_deployment=,
         #         host_deployments=,
         #     )],
         # ),
         # dict(
         #     package=,
         #     environment=,
         #     by_apptype=[dict(
         #         current_app_deployment=,
         #         previous_app_deployment=,
         #         host_deployments=,
         #     )],
         # ),
     ]
     self.CLI = cli.CLI("blocks")
Example #3
0
 def setUp(self):
     self.packages = [PackageFactory(), PackageFactory()]
     self.CLI = cli.CLI("blocks")
     sys.stdout = self.out = StringIO()
Example #4
0
 def setUp(self):
     self.apps = [ApplicationFactory(), ApplicationFactory()]
     self.CLI = cli.CLI("blocks")
     sys.stdout = self.out = StringIO()
Example #5
0
 def test_format(self):
     CLI = cli.CLI("blocks")
     self.assertEqual(CLI.output_format, "blocks")
Example #6
0
 def setUp(self):
     self.CLI = cli.CLI("blocks")