chore: carry over lab 1 solution into lab 2 skeleton
Copy the committed lab 1 sources as-is: src/, student-tests/, bench/, Dockerfile, docker-compose.yml, pyproject.toml, uv.lock, .python-version, config_example.toml, AGENTS.md, CLAUDE.md, .claude/, openspec/, .graphifyignore and KNOWN_ISSUES.md. Lab 1 evidence stays in the lab 1 repository. Merge the new skeleton files with own sections: Makefile (lab 2 targets plus own run, docker, bench and common targets), .gitignore, .dockerignore and .env.example. Rename the image to mtusi-messenger:lab2 and point AGENTS.md at lab 2. The application is still the in-memory lab 1 implementation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""Спек `data-storage`.
|
||||
|
||||
Гонки — в `test_race.py`, рестарт — исключение в `spec_coverage.py`.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
from api_client import API, Api
|
||||
from contract import assert_ok
|
||||
|
||||
|
||||
@pytest.mark.spec("data-storage", "Созданное видно сразу")
|
||||
def test_created_user_visible_at_once(api: Api) -> None:
|
||||
for _ in range(5):
|
||||
actor = api.register()
|
||||
resp = api.request("GET", f"{API}/users/me", actor=actor)
|
||||
assert assert_ok(resp, 200, "User") == actor.user
|
||||
Reference in New Issue
Block a user