mirror of
				https://github.com/bspeice/metrik
				synced 2025-11-04 02:10:43 -05:00 
			
		
		
		
	Fix one last import
This commit is contained in:
		@ -2,7 +2,7 @@ from pymongo import MongoClient
 | 
				
			|||||||
from random import randint
 | 
					from random import randint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from metrik.targets.mongo import MongoTarget
 | 
					from metrik.targets.mongo import MongoTarget
 | 
				
			||||||
from metrik.conf import MONGO_DATABASE, MONGO_HOST, MONGO_PORT
 | 
					from metrik.conf import get_config
 | 
				
			||||||
from test.mongo_test import MongoTest
 | 
					from test.mongo_test import MongoTest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -17,8 +17,7 @@ class MongoTargetTest(MongoTest):
 | 
				
			|||||||
        t.persist({'a': 'b'})
 | 
					        t.persist({'a': 'b'})
 | 
				
			||||||
        assert t.exists()
 | 
					        assert t.exists()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        db = MongoClient(MONGO_HOST, MONGO_PORT)[MONGO_DATABASE]
 | 
					        db_collection = self.db[collection]
 | 
				
			||||||
        db_collection = db[collection]
 | 
					 | 
				
			||||||
        db_collection.remove(id)
 | 
					        db_collection.remove(id)
 | 
				
			||||||
        assert not t.exists()
 | 
					        assert not t.exists()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user