emtest 0.0.3__py3-none-any.whl → 0.0.4__py3-none-any.whl

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.

Potentially problematic release.


This version of emtest might be problematic. Click here for more details.

@@ -1,11 +1,11 @@
1
1
  """Rerun the orignially executed python script in pytest instead of python."""
2
+
2
3
  import os
3
4
  import sys
4
5
 
5
6
  from emtest import run_pytest
6
7
 
7
8
  # Configuration for standalone execution
8
- BREAKPOINTS = False # Set to True to enable debugger on test failures
9
9
 
10
10
  path_parts = sys.argv[0].split(os.sep)
11
11
  if not (
@@ -17,15 +17,13 @@ if not (
17
17
  )
18
18
  ):
19
19
  test_file = os.path.abspath(sys.argv[0])
20
- pytest_args=sys.argv[1:]
20
+ pytest_args = sys.argv[1:]
21
21
  # print("RERUNNING IN PYTEST:", test_file)
22
22
 
23
23
  # Use emtest's custom test runner with specific settings:
24
24
  run_pytest(
25
- test_path=test_file, # Run tests in this file
26
- breakpoints=BREAKPOINTS, # Enable/disable debugger on failures
27
- enable_print=True, # Show print statements in tests
28
- pytest_args=pytest_args
25
+ test_path=test_file, # Run tests in this file
26
+ pytest_args=pytest_args,
29
27
  )
30
28
 
31
29
  sys.exit(-1)
@@ -0,0 +1,101 @@
1
+ Metadata-Version: 2.4
2
+ Name: emtest
3
+ Version: 0.0.4
4
+ Summary: Testing utilities which I find useful.
5
+ Author-email: Emendir <dev@emendir.tech>
6
+ License-Expression: MIT-0 OR CC0-1.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ License-File: LICENSE-CC0
13
+ Requires-Dist: tqdm
14
+ Dynamic: license-file
15
+
16
+ # emtest - Python Testing Utilities
17
+
18
+ A Python package providing testing utilities.
19
+
20
+ ## Features
21
+
22
+ ### 🎨 Clean Test Output for Pytest
23
+ - **MinimalReporter**: Custom pytest reporter with clean, colored output using simple symbols (✓/✗/-)
24
+ - **Configurable Output**: Toggle between minimal and standard pytest output modes
25
+
26
+ ### 🔧 Development Utilities
27
+ - **Source Path Management**: Dynamically add directories to Python path for testing source code
28
+ - **Module Source Validation**: Ensure modules are loaded from source directories (not installed packages)
29
+ - **Thread Cleanup Monitoring**: Wait for and verify proper thread cleanup in tests
30
+
31
+ ### ⚡ Enhanced Test Execution
32
+ - **Dual Execution Pattern**: Run tests both as pytest tests and standalone Python scripts
33
+ - **Breakpoint Integration**: Easy debugging with pytest's `--pdb` integration
34
+ - **Progress Indicators**: Visual progress bars for waiting operations
35
+
36
+ ## Installation
37
+
38
+ ```sh
39
+ pip install emtest
40
+ ```
41
+
42
+ ## Usage
43
+
44
+ See the `examples/` directory for complete working examples showing:
45
+ - Basic test setup with `conftest.py`
46
+ - Dual execution pattern implementation
47
+ - Source loading validation
48
+ - Thread cleanup testing
49
+
50
+
51
+ ## Documentation
52
+
53
+ - [Full Documentation](docs/README.md):
54
+ - [API-Reference](docs/API-Reference/README.html)
55
+
56
+ ## Roadmap
57
+
58
+ ## Contributing
59
+
60
+ ### Get Involved
61
+
62
+ - GitHub Discussions: if you want to share ideas
63
+ - GitHub Issues: if you find bugs, other issues, or would like to submit feature requests
64
+ - GitHub Merge Requests: if you think you know what you're doing, you're very welcome!
65
+
66
+ ### Donations
67
+
68
+ To support me in my work on this and other projects, you can make donations with the following currencies:
69
+
70
+ - **Bitcoin:** `BC1Q45QEE6YTNGRC5TSZ42ZL3MWV8798ZEF70H2DG0`
71
+ - **Ethereum:** `0xA32C3bBC2106C986317f202B3aa8eBc3063323D4`
72
+ - [**Fiat** (via Credit or Debit Card, Apple Pay, Google Pay, Revolut Pay)](https://checkout.revolut.com/pay/4e4d24de-26cf-4e7d-9e84-ede89ec67f32)
73
+
74
+ Donations help me:
75
+ - dedicate more time to developing and maintaining open-source projects
76
+ - cover costs for IT infrastructure
77
+ - finance projects requiring additional hardware & compute
78
+
79
+ ## About the Developer
80
+
81
+ This project is developed by a human one-man team, publishing under the name _Emendir_.
82
+ I build open technologies trying to improve our world;
83
+ learning, working and sharing under the principle:
84
+
85
+ > _Freely I have received, freely I give._
86
+
87
+ Feel welcome to join in with code contributions, discussions, ideas and more!
88
+
89
+ ## Open-Source in the Public Domain
90
+
91
+ I dedicate this project to the public domain.
92
+ It is open source and free to use, share, modify, and build upon without restrictions or conditions.
93
+
94
+ I make no patent or trademark claims over this project.
95
+
96
+ Formally, you may use this project under either the:
97
+ - [MIT No Attribution (MIT-0)](https://choosealicense.com/licenses/mit-0/) or
98
+ - [Creative Commons Zero (CC0)](https://choosealicense.com/licenses/cc0-1.0/)
99
+ licence at your choice.
100
+
101
+
@@ -0,0 +1,10 @@
1
+ _auto_run_with_pytest/__init__.py,sha256=P2Tgn9TbVJvNiyOygCrBso4uAd7Og9suuHmKE0-CEtU,753
2
+ emtest/__init__.py,sha256=G_EnVC57IL_OjVJAjaz75y9owlCcdbvXfvR-ncO1icU,344
3
+ emtest/pytest_utils.py,sha256=qGKGlQTIgKi3BjmUTfcqzPE_0QfWkWfefy8Oitq3sdQ,4844
4
+ emtest/testing_utils.py,sha256=lzXRXwA50YQBHO35Y2s6NcbvgrdTcwGJjJ79CkzJKkk,4780
5
+ emtest-0.0.4.dist-info/licenses/LICENSE,sha256=i720OgyQLs68DSskm7ZLzaGKMnfskBIIHOuPWfwT2q4,907
6
+ emtest-0.0.4.dist-info/licenses/LICENSE-CC0,sha256=kXBMw0w0VVXQAbLjqMKmis4OngrPaK4HY9ScH6MdtxM,7038
7
+ emtest-0.0.4.dist-info/METADATA,sha256=Brr2oyYeArMDrP0K17UTUELzQ-LiUURmAQgDlfXMUXE,3395
8
+ emtest-0.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ emtest-0.0.4.dist-info/top_level.txt,sha256=sfToBhqMjk35PDheZ42yiMGYNYatT3V5Mwhb79fp5dE,29
10
+ emtest-0.0.4.dist-info/RECORD,,
@@ -0,0 +1,18 @@
1
+ MIT No Attribution
2
+
3
+ Copyright [year] [fullname]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
@@ -101,7 +101,7 @@ express Statement of Purpose.
101
101
 
102
102
  4. Limitations and Disclaimers.
103
103
 
104
- a. No trademark or patent rights held by Affirmer are waived, abandoned,
104
+ a. No trademark rights held by Affirmer are waived, abandoned,
105
105
  surrendered, licensed or otherwise affected by this document.
106
106
  b. Affirmer offers the Work as-is and makes no representations or
107
107
  warranties of any kind concerning the Work, express, implied,
@@ -118,4 +118,4 @@ express Statement of Purpose.
118
118
  Work.
119
119
  d. Affirmer understands and acknowledges that Creative Commons is not a
120
120
  party to this document and has no duty or obligation with respect to
121
- this CC0 or use of the Work.
121
+ this CC0 or use of the Work.
@@ -1,49 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: emtest
3
- Version: 0.0.3
4
- Summary: Testing utilities which I find useful.
5
- Author-email: Emendir <dev@emendir.tech>
6
- License-Expression: CC0-1.0
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Operating System :: OS Independent
9
- Requires-Python: >=3.6
10
- Description-Content-Type: text/markdown
11
- License-File: LICENCE
12
- Requires-Dist: tqdm
13
- Dynamic: license-file
14
-
15
- # emtest - Python Testing Utilities
16
-
17
- A Python package providing testing utilities.
18
-
19
- ## Features
20
-
21
- ### 🎨 Clean Test Output for Pytest
22
- - **MinimalReporter**: Custom pytest reporter with clean, colored output using simple symbols (✓/✗/-)
23
- - **Configurable Output**: Toggle between minimal and standard pytest output modes
24
-
25
- ### 🔧 Development Utilities
26
- - **Source Path Management**: Dynamically add directories to Python path for testing source code
27
- - **Module Source Validation**: Ensure modules are loaded from source directories (not installed packages)
28
- - **Thread Cleanup Monitoring**: Wait for and verify proper thread cleanup in tests
29
-
30
- ### ⚡ Enhanced Test Execution
31
- - **Dual Execution Pattern**: Run tests both as pytest tests and standalone Python scripts
32
- - **Breakpoint Integration**: Easy debugging with pytest's `--pdb` integration
33
- - **Progress Indicators**: Visual progress bars for waiting operations
34
-
35
- ## Installation
36
-
37
- ```sh
38
- pip install emtest
39
- ```
40
-
41
- ## Usage
42
-
43
- See the `examples/` directory for complete working examples showing:
44
- - Basic test setup with `conftest.py`
45
- - Dual execution pattern implementation
46
- - Source loading validation
47
- - Thread cleanup testing
48
-
49
-
@@ -1,9 +0,0 @@
1
- _auto_run_with_pytest/__init__.py,sha256=XfdKb4Kz-BHojNZdUn_m1RJbgGM65-qUIUe-tLlc8S4,985
2
- emtest/__init__.py,sha256=G_EnVC57IL_OjVJAjaz75y9owlCcdbvXfvR-ncO1icU,344
3
- emtest/pytest_utils.py,sha256=qGKGlQTIgKi3BjmUTfcqzPE_0QfWkWfefy8Oitq3sdQ,4844
4
- emtest/testing_utils.py,sha256=lzXRXwA50YQBHO35Y2s6NcbvgrdTcwGJjJ79CkzJKkk,4780
5
- emtest-0.0.3.dist-info/licenses/LICENCE,sha256=bUia9ikmYtnjbTTOSUI3hJhKX25B17WPSbASZN9Z-gM,7047
6
- emtest-0.0.3.dist-info/METADATA,sha256=4GAMKLottAS-zatp4qyF1e40U4vY_HtUIoZjAVYwdmE,1570
7
- emtest-0.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- emtest-0.0.3.dist-info/top_level.txt,sha256=sfToBhqMjk35PDheZ42yiMGYNYatT3V5Mwhb79fp5dE,29
9
- emtest-0.0.3.dist-info/RECORD,,
File without changes