MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / create_tests

Function create_tests

test/test_bson_corpus.py:221–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219
220
221def create_tests():
222 for filename in glob.glob(os.path.join(_TEST_PATH, "*.json")):
223 test_suffix, _ = os.path.splitext(os.path.basename(filename))
224 with open(filename, encoding="utf-8") as bson_test_file:
225 test_method = create_test(json.load(bson_test_file))
226 setattr(TestBSONCorpus, "test_" + test_suffix, test_method)
227
228
229create_tests()

Callers 1

Calls 2

create_testFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected