()
| 219 | |
| 220 | |
| 221 | def 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 | |
| 229 | create_tests() |
no test coverage detected