Skip to content

Добавляет unit-тесты и README (финальный проект)#4

Open
Timitriy wants to merge 4 commits into
mainfrom
develop
Open

Добавляет unit-тесты и README (финальный проект)#4
Timitriy wants to merge 4 commits into
mainfrom
develop

Conversation

@Timitriy

Copy link
Copy Markdown
Owner

Что сделано

  • Добавлен полный набор из 13 unit-тестов для BooksCollector
  • Добавлен README с описанием сценариев и инструкцией запуска
  • Добавлен .gitignore (venv, pycache)
  • Добавлен requirements.txt

Как проверить

pytest -v tests.py

Comment thread tests.py Outdated
Comment on lines +6 to +9
@pytest.fixture()
def collector():
"""Свежий экземпляр BooksCollector для каждого теста."""
return BooksCollector()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно исправить: фикстуры живут в conftest

Comment thread tests.py Outdated


# ---------- favorites (add / delete / get) ----------
def test_favorites_add_and_delete(collector):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно исправить: тут должно быть три отдельных теста

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants