Add mockapi source files and tests
This commit is contained in:
@@ -179,13 +179,10 @@ class TestDataGenerator:
|
||||
assert result is None
|
||||
|
||||
def test_generate_with_seed_reproducibility(self):
|
||||
"""Test that same seed produces same results within a single generator."""
|
||||
"""Test that same seed produces same results."""
|
||||
gen = DataGenerator(seed=12345)
|
||||
|
||||
schema = {"type": "integer", "minimum": 0, "maximum": 1000}
|
||||
|
||||
result1 = gen.generate(schema)
|
||||
result2 = gen.generate(schema)
|
||||
|
||||
assert isinstance(result1, int)
|
||||
assert isinstance(result2, int)
|
||||
Reference in New Issue
Block a user