diff --git a/tests/test_validators.py b/tests/test_validators.py
index <HASH>..<HASH> 100644
--- a/tests/test_validators.py
+++ b/tests/test_validators.py
@@ -141,7 +141,7 @@ class jsonModelTests(jsonModel):
         # print(self.validate(valid_input))
         return self
 
-testModel = json.loads(open('../models/sample-model.json').read())
-testInput = json.loads(open('../models/sample-input.json').read())
-
-jsonModelTests(testModel).unitTests(testInput)
\ No newline at end of file
+if __name__ == '__main__':
+    testModel = json.loads(open('../models/sample-model.json').read())
+    testInput = json.loads(open('../models/sample-input.json').read())
+    jsonModelTests(testModel).unitTests(testInput)
\ No newline at end of file
added init when name = main;