Shared testing utilities: centralized test config, server management, and test environment setup
Project description
jleechanorg-testing-utils
Shared testing utilities: centralized test configuration, test server management, and test environment setup for browser and HTTP tests.
Install
pip install jleechanorg-testing-utils
Usage
from testing_util import (
TestConfig,
TestType,
TestMode,
get_browser_base_url,
get_http_base_url,
setup_test_environment,
TestServerManager,
start_test_server,
stop_test_server,
test_server,
)
# Configuration
url = get_browser_base_url() # http://localhost:8081
config = TestConfig.get_server_config(TestType.BROWSER)
# Server management
with test_server(TestType.HTTP) as port:
# run tests against server on port
pass
API
- TestConfig – Centralized test server configuration (ports, URLs)
- TestType – BROWSER | HTTP | INTEGRATION | DEVELOPMENT
- TestMode – MOCK | REAL | INTEGRATION
- TestServerManager – Manages Flask test server lifecycle
- test_server – Context manager for temporary test server
- setup_test_environment – Initialize test environment variables
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jleechanorg_testing_utils-0.1.1.tar.gz.
File metadata
- Download URL: jleechanorg_testing_utils-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1dc0f83b5e2eae83238f770707d296d88caa15a719972fff2763dc7e65f14a3
|
|
| MD5 |
88e3a8bcd60b8dd4f85b5bde1a5bb752
|
|
| BLAKE2b-256 |
6881b9a311f192c0e9c3e225188f8f3caf3e4ca0138ba114e34381912c637ef3
|
File details
Details for the file jleechanorg_testing_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: jleechanorg_testing_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e309e39482a125dce3f1b541e88dc59fe9b2d9ae66ebc45910c029b5416e0860
|
|
| MD5 |
06357d0ea314a7fcb203fd9738eb0175
|
|
| BLAKE2b-256 |
555b64d787cd8a9fdb9acabdb16a1e4ae245c37dfc79bf94b11cd295e65aa1e2
|