feat(tests): add E2E tests with pytfm framework

- Add pytfm workspace dependency to tests and types groups

- Create E2E test example using pytfm API and page objects

- Add BlogHomePage and BlogAPI test classes

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-05-02 23:31:27 +03:00
parent 981f26794d
commit 1f6e13fbd5
2 changed files with 62 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ tests = [
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"pytfm",
]
lints = [
"black>=23.7.0",
@@ -47,11 +48,15 @@ lints = [
types = [
"mimesis>=19.1.0",
"mypy>=1.20.1",
"pytfm",
]
[project.scripts]
blog = "app.main:main"
[tool.uv.sources]
pytfm = { workspace = true }
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"