hardpy 0.6.0__tar.gz → 0.6.1__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.
- {hardpy-0.6.0 → hardpy-0.6.1}/PKG-INFO +1 -1
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/cli/template.py +11 -1
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/base_connector.py +7 -1
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/plugin.py +4 -1
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/connection_data.py +1 -1
- {hardpy-0.6.0 → hardpy-0.6.1}/pyproject.toml +1 -1
- {hardpy-0.6.0 → hardpy-0.6.1}/.gitignore +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/LICENSE +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/README.md +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/cli/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/cli/cli.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/common/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/common/config.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/api.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/asset-manifest.json +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/favicon.ico +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/index.html +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/logo512.png +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/manifest.json +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/css/main.e8a862f1.css +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/css/main.e8a862f1.css.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/808.ce070002.chunk.js +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/808.ce070002.chunk.js.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-16px-paths.d605910e.chunk.js +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-16px-paths.d605910e.chunk.js.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-20px-paths.7ee05cc8.chunk.js +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-20px-paths.7ee05cc8.chunk.js.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths-loader.0aa89747.chunk.js +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths-loader.0aa89747.chunk.js.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths.f63155c9.chunk.js +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-all-paths.f63155c9.chunk.js.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-split-paths-by-size-loader.52a072d3.chunk.js +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/blueprint-icons-split-paths-by-size-loader.52a072d3.chunk.js.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/main.7c954faf.js +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/main.7c954faf.js.LICENSE.txt +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/main.7c954faf.js.map +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-16.520846c6beb41df528c8.eot +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-16.5c52b39c697f2323ce8b.svg +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-16.84db1772f4bfb529f64f.woff +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-16.b67ee1736e20e37a3225.woff2 +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-16.e02ecf515378db143652.ttf +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-20.429cacb8accf72488451.ttf +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-20.6ae3791ee2d86fc228a6.svg +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-20.8cecf62de42997e4d82f.woff2 +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-20.afbadb627d43b7857223.eot +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/blueprint-icons-20.e857f5a5132b8bfa71a1.woff +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/media/logo_smol.5b16f92447a4a9e80331.png +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/base_server.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/base_store.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/const.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/runstore.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/schema.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/db/statestore.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/pytest_call.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/pytest_wrapper.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/reporter/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/reporter/base.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/reporter/hook_reporter.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/reporter/runner_reporter.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/result/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/result/couchdb_config.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/result/report_loader/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/result/report_loader/couchdb_loader.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/result/report_reader/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/result/report_reader/couchdb_reader.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/__init__.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/const.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/dialog_box.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/exception.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/node_info.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/progress_calculator.py +0 -0
- {hardpy-0.6.0 → hardpy-0.6.1}/hardpy/pytest_hardpy/utils/singleton.py +0 -0
|
@@ -137,6 +137,9 @@ log_cli_level = INFO
|
|
|
137
137
|
log_cli_format = %%(asctime)s [%%(levelname)s] %%(message)s
|
|
138
138
|
log_cli_date_format = %H:%M:%S
|
|
139
139
|
addopts = --hardpy-pt
|
|
140
|
+
--hardpy-db-url http://{}:{}@{}:{}/
|
|
141
|
+
--hardpy-sh {}
|
|
142
|
+
--hardpy-sp {}
|
|
140
143
|
"""
|
|
141
144
|
|
|
142
145
|
test_1_py = """import pytest
|
|
@@ -199,7 +202,14 @@ class TemplateGenerator:
|
|
|
199
202
|
|
|
200
203
|
@property
|
|
201
204
|
def pytest_ini(self) -> str:
|
|
202
|
-
return pytest_ini
|
|
205
|
+
return pytest_ini.format(
|
|
206
|
+
self._config.database.user,
|
|
207
|
+
self._config.database.password,
|
|
208
|
+
self._config.database.host,
|
|
209
|
+
self._config.database.port,
|
|
210
|
+
self._config.socket.host,
|
|
211
|
+
self._config.socket.port,
|
|
212
|
+
)
|
|
203
213
|
|
|
204
214
|
@property
|
|
205
215
|
def test_1_py(self) -> str: # noqa: WPS114
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# Copyright (c) 2024 Everypin
|
|
2
2
|
# GNU General Public License v3.0 (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
3
3
|
|
|
4
|
+
from requests.exceptions import ConnectionError
|
|
5
|
+
|
|
4
6
|
from pycouchdb.client import Database
|
|
5
|
-
from pycouchdb.exceptions import Conflict
|
|
7
|
+
from pycouchdb.exceptions import Conflict, GenericError
|
|
6
8
|
|
|
7
9
|
from hardpy.pytest_hardpy.db.base_server import BaseServer
|
|
8
10
|
|
|
@@ -22,3 +24,7 @@ class BaseConnector(BaseServer):
|
|
|
22
24
|
except Conflict:
|
|
23
25
|
# database is already created
|
|
24
26
|
return self._db_srv.database(self._db_name)
|
|
27
|
+
except GenericError as exc:
|
|
28
|
+
raise RuntimeError(f"Error initializing database {exc}") from exc
|
|
29
|
+
except ConnectionError as exc:
|
|
30
|
+
raise RuntimeError(f"Error initializing database: {exc}") from exc
|
|
@@ -124,7 +124,10 @@ class HardpyPlugin:
|
|
|
124
124
|
config.addinivalue_line("markers", "dependency")
|
|
125
125
|
|
|
126
126
|
# must be init after config data is set
|
|
127
|
-
|
|
127
|
+
try:
|
|
128
|
+
self._reporter = HookReporter(is_clear_statestore)
|
|
129
|
+
except RuntimeError as exc:
|
|
130
|
+
exit(str(exc), 1)
|
|
128
131
|
|
|
129
132
|
def pytest_sessionfinish(self, session: Session, exitstatus: int):
|
|
130
133
|
"""Call at the end of test session."""
|
|
@@ -11,7 +11,7 @@ class ConnectionData(Singleton):
|
|
|
11
11
|
|
|
12
12
|
def __init__(self):
|
|
13
13
|
if not self._initialized:
|
|
14
|
-
self.database_url: str = ""
|
|
14
|
+
self.database_url: str = "http://dev:dev@localhost:5984/"
|
|
15
15
|
self.socket_host: str = gethostname()
|
|
16
16
|
self.socket_port: int = 6525
|
|
17
17
|
self._initialized = True
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/css/main.e8a862f1.css
RENAMED
|
File without changes
|
{hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/css/main.e8a862f1.css.map
RENAMED
|
File without changes
|
{hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/808.ce070002.chunk.js
RENAMED
|
File without changes
|
{hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/808.ce070002.chunk.js.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{hardpy-0.6.0 → hardpy-0.6.1}/hardpy/hardpy_panel/frontend/dist/static/js/main.7c954faf.js.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|