コード例 #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))
コード例 #2
0
ファイル: test_dataset_model.py プロジェクト: odtvince/udata
 def setUp(self):
     # Feed the DB with random data to ensure true matching
     LicenseFactory.create_batch(3)
コード例 #3
0
 def setUp(self):
     # Feed the DB with random data to ensure true matching
     LicenseFactory.create_batch(3)
コード例 #4
0
ファイル: test_dataset_model.py プロジェクト: pahpa/udata
 def setUp(self):
     super(LicenseModelTest, self).setUp()
     # Feed the DB with random data to ensure true matching
     LicenseFactory.create_batch(3)