pytest-api-cov 0.1.1__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-api-cov
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: Api Coverage Report Pytest Plugin
5
5
  Author-email: Barnaby Gill <barnabasgill@gmail.com>
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pytest-api-cov"
3
- version = "0.1.1"
3
+ version = "0.1.3"
4
4
  description = "Api Coverage Report Pytest Plugin"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -69,11 +69,11 @@ include = [
69
69
  "pyproject.toml",
70
70
  ]
71
71
 
72
- [[tool.uv.index]]
73
- name = "testpypi"
74
- url = "https://test.pypi.org/simple/"
75
- publish-url = "https://test.pypi.org/legacy/"
76
- explicit = true
72
+ # [[tool.uv.index]]
73
+ # name = "testpypi"
74
+ # url = "https://test.pypi.org/simple/"
75
+ # publish-url = "https://test.pypi.org/legacy/"
76
+ # explicit = true
77
77
 
78
78
  [project.entry-points."pytest11"]
79
79
  pytest_api_cov = "pytest_api_cov.plugin"
@@ -0,0 +1,7 @@
1
+ """init pytest_api_cov."""
2
+
3
+ try:
4
+ from importlib.metadata import version
5
+ __version__ = version("pytest-api-cov")
6
+ except ImportError:
7
+ __version__ = "unknown"
@@ -61,8 +61,16 @@ from {module_path} import {app_variable}
61
61
 
62
62
 
63
63
  @pytest.fixture
64
- def app():
65
- """Provide the {framework} app for API coverage testing."""
64
+ def client():
65
+ """Provide the {framework} client for API coverage testing.
66
+
67
+ In your test:
68
+ ```
69
+ def test_root_endpoint(client):
70
+ response = client.get("/")
71
+ assert response.status_code == 200
72
+ ```
73
+ """
66
74
  return {app_variable}
67
75
  '''
68
76
 
@@ -1 +0,0 @@
1
- # This file makes the pytest_api_cov directory a Python package
File without changes
File without changes