You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More info : [questionnaire_unit_test.md](./questionnaire_unit_test.md)
56
62
63
+
### Explanation
64
+
65
+
```load_json_argv()``` is the entry point. It receives ```sys.argv```, validates that there is exactly one ```.json``` argument, detects whether it is a ```URL``` or a local ```file```, and delegates to ```load_json_data_from_URL()``` or ```load_json_data_from_file()```. It always returns a tuple ```(json_data, file_path)```.
66
+
57
67
58
68
### Testing highlights
59
-
69
+
The objective was to test these various characteristics and methods:
70
+
60
71
-**Test-class inheritance** to reuse base cases by changing a single parameter.
61
72
-**Mocking** with `unittest.mock.patch` to simulate `sys.argv`.
62
73
-**Threaded local HTTP server** (`ThreadingMixIn` + `SimpleHTTPRequestHandler`) to test
0 commit comments