forked from mtusi2026/mtusi2026lab2
19 lines
938 B
Plaintext
19 lines
938 B
Plaintext
python3 scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
python3 tests/smoke.py --base-url "http://localhost:8080"
|
|
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
|
BASE_URL="http://localhost:8080" python3 -m unittest discover -s student-tests -p test_api.py -v
|
|
test_concurrent_messages_and_pagination (test_api.APIContract) ... ok
|
|
test_cursor_scope_and_validation (test_api.APIContract) ... ok
|
|
test_foreign_chat (test_api.APIContract) ... ok
|
|
test_invalid_chat_creation (test_api.APIContract) ... ok
|
|
test_malformed_json_and_extra_fields (test_api.APIContract) ... ok
|
|
test_registration_race (test_api.APIContract) ... ok
|
|
test_unicode_limits (test_api.APIContract) ... ok
|
|
test_unicode_password_basic_and_logout (test_api.APIContract) ... ok
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 8 tests in 13.427s
|
|
|
|
OK
|