コード例 #1
0
 def test_1_1_1_1(self):
     og_tile_count = TileModel.objects.count()
     ArchesFileImporter(
         "tests/fixtures/data/json/cardinality_test_data/source.json",
         "tests/fixtures/data/json/cardinality_test_data/1_1_1_1.mapping"
     ).import_business_data()
     new_tile_count = TileModel.objects.count()
     tile_difference = new_tile_count - og_tile_count
     self.assertEqual(tile_difference, 2)
コード例 #2
0
	def test_single_n_n(self):
		og_tile_count = TileModel.objects.count()
		ArchesFileImporter('tests/fixtures/data/json/cardinality_test_data/source.json','tests/fixtures/data/json/cardinality_test_data/single-n_n.mapping').import_business_data()
		new_tile_count = TileModel.objects.count()
		tile_difference = new_tile_count - og_tile_count
		self.assertEqual(tile_difference, 3)