Example #1
0
    def test_dataset_licenses_list(self):
        '''It should fetch the dataset licenses list from the API'''
        licenses = LicenseFactory.create_batch(4)

        response = self.get(url_for('api.licenses'))
        self.assert200(response)
        self.assertEqual(len(response.json), len(licenses))
Example #2
0
 def setUp(self):
     # Feed the DB with random data to ensure true matching
     LicenseFactory.create_batch(3)
Example #3
0
 def setUp(self):
     # Feed the DB with random data to ensure true matching
     LicenseFactory.create_batch(3)
Example #4
0
 def setUp(self):
     super(LicenseModelTest, self).setUp()
     # Feed the DB with random data to ensure true matching
     LicenseFactory.create_batch(3)