Example #1
0
 def handle(self, *args, **options):
     try:
         Port.load(options['path'])
     except FileNotFoundError:
         raise CommandError(
             '"{}" not found. Make sure "{}" is a valid JSON file and is in the root of the project'
             .format(options['path'], options['path']))
Example #2
0
 def setUp(self):
     Port.load(TEST_PORTINDEX_JSON)
Example #3
0
 def setUp(self):
     self.client = Client()
     Port.load(TEST_PORTINDEX_JSON)