cucu 1.0.12__py3-none-any.whl → 1.1.1__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 cucu might be problematic. Click here for more details.
- cucu/cli/core.py +6 -6
- cucu/cli/run.py +3 -3
- cucu/environment.py +3 -3
- cucu/logger.py +0 -14
- {cucu-1.0.12.dist-info → cucu-1.1.1.dist-info}/METADATA +6 -6
- {cucu-1.0.12.dist-info → cucu-1.1.1.dist-info}/RECORD +9 -9
- {cucu-1.0.12.dist-info → cucu-1.1.1.dist-info}/WHEEL +0 -0
- {cucu-1.0.12.dist-info → cucu-1.1.1.dist-info}/entry_points.txt +0 -0
- {cucu-1.0.12.dist-info → cucu-1.1.1.dist-info}/licenses/LICENSE +0 -0
cucu/cli/core.py
CHANGED
|
@@ -90,10 +90,10 @@ def main():
|
|
|
90
90
|
)
|
|
91
91
|
@click.option("-n", "--name", help="used to specify the exact scenario to run")
|
|
92
92
|
@click.option(
|
|
93
|
-
"-
|
|
94
|
-
"--
|
|
93
|
+
"-d",
|
|
94
|
+
"--debug-on-failure/--no-debug-on-failure",
|
|
95
95
|
default=False,
|
|
96
|
-
help="on failure drop into the
|
|
96
|
+
help="on failure drop into the debug shell",
|
|
97
97
|
)
|
|
98
98
|
@click.option(
|
|
99
99
|
"-j",
|
|
@@ -213,7 +213,7 @@ def run(
|
|
|
213
213
|
fail_fast,
|
|
214
214
|
headless,
|
|
215
215
|
name,
|
|
216
|
-
|
|
216
|
+
debug_on_failure,
|
|
217
217
|
junit,
|
|
218
218
|
junit_with_stacktrace,
|
|
219
219
|
logging_level,
|
|
@@ -323,7 +323,7 @@ def run(
|
|
|
323
323
|
fail_fast,
|
|
324
324
|
headless,
|
|
325
325
|
name,
|
|
326
|
-
|
|
326
|
+
debug_on_failure,
|
|
327
327
|
junit,
|
|
328
328
|
results,
|
|
329
329
|
secrets,
|
|
@@ -415,7 +415,7 @@ def run(
|
|
|
415
415
|
fail_fast,
|
|
416
416
|
headless,
|
|
417
417
|
name,
|
|
418
|
-
|
|
418
|
+
debug_on_failure,
|
|
419
419
|
junit,
|
|
420
420
|
results,
|
|
421
421
|
secrets,
|
cucu/cli/run.py
CHANGED
|
@@ -46,7 +46,7 @@ def behave(
|
|
|
46
46
|
fail_fast,
|
|
47
47
|
headless,
|
|
48
48
|
name,
|
|
49
|
-
|
|
49
|
+
debug_on_failure,
|
|
50
50
|
junit,
|
|
51
51
|
results,
|
|
52
52
|
secrets,
|
|
@@ -81,8 +81,8 @@ def behave(
|
|
|
81
81
|
key, value = variable.split("=")
|
|
82
82
|
os.environ[key] = value
|
|
83
83
|
|
|
84
|
-
if
|
|
85
|
-
os.environ["
|
|
84
|
+
if debug_on_failure:
|
|
85
|
+
os.environ["CUCU_DEBUG_ON_FAILURE"] = "true"
|
|
86
86
|
|
|
87
87
|
os.environ["CUCU_RESULTS_DIR"] = results
|
|
88
88
|
os.environ["CUCU_JUNIT_DIR"] = junit
|
cucu/environment.py
CHANGED
|
@@ -270,11 +270,11 @@ def after_step(ctx, step):
|
|
|
270
270
|
ctx.step_index += 1
|
|
271
271
|
CONFIG["__STEP_SCREENSHOT_COUNT"] = 0
|
|
272
272
|
|
|
273
|
-
if CONFIG.bool("
|
|
273
|
+
if CONFIG.bool("CUCU_DEBUG_ON_FAILURE") and step.status == "failed":
|
|
274
274
|
ctx._runner.stop_capture()
|
|
275
|
-
import
|
|
275
|
+
import pdb
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
pdb.post_mortem(step.exc_traceback)
|
|
278
278
|
|
|
279
279
|
CONFIG["__CUCU_BEFORE_THIS_SCENARIO_HOOKS"] = []
|
|
280
280
|
|
cucu/logger.py
CHANGED
|
@@ -80,20 +80,6 @@ def info(*args, **kwargs):
|
|
|
80
80
|
logging.info(*args, **kwargs)
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
@wraps(logging.warning)
|
|
84
|
-
def warn(*args, **kwargs):
|
|
85
|
-
console_handler = logging.getLogger().handlers[0]
|
|
86
|
-
logging_level = console_handler.level
|
|
87
|
-
|
|
88
|
-
if logging_level <= logging.WARN:
|
|
89
|
-
CONFIG["__CUCU_WROTE_TO_OUTPUT"] = True
|
|
90
|
-
|
|
91
|
-
logging.getLogger().warning(
|
|
92
|
-
'The method "warn" is deprecated use warning() instead.'
|
|
93
|
-
)
|
|
94
|
-
logging.getLogger().warning(*args, **kwargs)
|
|
95
|
-
|
|
96
|
-
|
|
97
83
|
@wraps(logging.warning)
|
|
98
84
|
def warning(*args, **kwargs):
|
|
99
85
|
console_handler = logging.getLogger().handlers[0]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cucu
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Easy BDD web testing
|
|
5
5
|
Project-URL: Homepage, https://github.com/dominodatalab/cucu/wiki
|
|
6
6
|
Project-URL: Download, https://pypi.org/project/cucu/
|
|
@@ -23,18 +23,18 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
23
23
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
25
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
27
|
Classifier: Topic :: Software Development :: Testing :: BDD
|
|
27
28
|
Requires-Python: >=3.9
|
|
28
29
|
Requires-Dist: beautifulsoup4~=4.13.3
|
|
29
30
|
Requires-Dist: behave~=1.2.6
|
|
30
31
|
Requires-Dist: chromedriver-autoinstaller~=0.6.2
|
|
31
32
|
Requires-Dist: click~=8.1.7
|
|
32
|
-
Requires-Dist: coverage[toml]~=7.
|
|
33
|
+
Requires-Dist: coverage[toml]~=7.8
|
|
33
34
|
Requires-Dist: geckodriver-autoinstaller~=0.1.0
|
|
34
35
|
Requires-Dist: humanize~=4.12.1
|
|
35
36
|
Requires-Dist: importlib-metadata~=8.6.1
|
|
36
|
-
Requires-Dist:
|
|
37
|
-
Requires-Dist: jellyfish~=1.1.3
|
|
37
|
+
Requires-Dist: jellyfish>=1.1
|
|
38
38
|
Requires-Dist: jinja2~=3.1.3
|
|
39
39
|
Requires-Dist: lsprotocol~=2023.0.1
|
|
40
40
|
Requires-Dist: mpire~=2.10.2
|
|
@@ -42,9 +42,9 @@ Requires-Dist: psutil>=6.0
|
|
|
42
42
|
Requires-Dist: pygls~=1.3.1
|
|
43
43
|
Requires-Dist: pyyaml~=6.0.1
|
|
44
44
|
Requires-Dist: requests<3.0.0,>=2.31.0
|
|
45
|
-
Requires-Dist: selenium~=4.
|
|
45
|
+
Requires-Dist: selenium~=4.31
|
|
46
46
|
Requires-Dist: tabulate~=0.9.0
|
|
47
|
-
Requires-Dist: tenacity
|
|
47
|
+
Requires-Dist: tenacity>=9.0
|
|
48
48
|
Description-Content-Type: text/markdown
|
|
49
49
|
|
|
50
50
|
[](https://pypi.org/project/cucu/)
|
|
@@ -2,10 +2,10 @@ cucu/__init__.py,sha256=YtuajsJBj3_DgNoygHen9gKojeQF523Oc27kyCUzoG0,1013
|
|
|
2
2
|
cucu/ansi_parser.py,sha256=_yTlqr6KruLsqgWR6BkpJUC3bmlQy_9JbkuxFx6Jrbo,2213
|
|
3
3
|
cucu/behave_tweaks.py,sha256=dmq35BflbKw8LGsn-hH-Xnt0O9QM_mDznopaIdo0OF0,6578
|
|
4
4
|
cucu/config.py,sha256=12SXNtBSnD3N6K9DnCDYHZDA4_Wrh4g7whdgHDKSuPw,14022
|
|
5
|
-
cucu/environment.py,sha256=
|
|
5
|
+
cucu/environment.py,sha256=n5FyAq2T8t_dl1YdM38Wdp6yx9h0bL0pHyP5mAlhl00,9429
|
|
6
6
|
cucu/helpers.py,sha256=l_YMmbuXjtBRo-MER-qe6soUIyjt0ey2BoSgWs4zYwA,36285
|
|
7
7
|
cucu/hooks.py,sha256=3Z1mavU42XMQ0DZ7lVWwTB-BJYHRyYUOzzOtmkdIsow,7117
|
|
8
|
-
cucu/logger.py,sha256=
|
|
8
|
+
cucu/logger.py,sha256=Y4eHmNFCphqXEzUQD-DJ8dsaqTNtqxmaKSCdo66Oc-g,3349
|
|
9
9
|
cucu/page_checks.py,sha256=CW1AqIxZ7rrLxpkf8nEFwcw6amnoN3Tb-acoN8dq3g0,2179
|
|
10
10
|
cucu/utils.py,sha256=608b28WVWgzmFMAMLXpFWeXe3NjRZEhpEfcTnYy2JRM,8611
|
|
11
11
|
cucu/browser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -14,8 +14,8 @@ cucu/browser/frames.py,sha256=IW7kzRJn5PkbMaovIelAeCWO-T-2sOTwqaYBw-0-LKU,3545
|
|
|
14
14
|
cucu/browser/selenium.py,sha256=IOLzSyxNDUxEccc10qXV8hf817hNgUBRCHz1PbCEKhs,11605
|
|
15
15
|
cucu/browser/selenium_tweaks.py,sha256=oUIhWVhBZbc9qsmQUJMpIr9uUWKxtgZBcnySWU6Yttk,879
|
|
16
16
|
cucu/cli/__init__.py,sha256=uXX5yVG1konJ_INdlrcfMg-Tt_5_cSx29Ed8R8v908A,62
|
|
17
|
-
cucu/cli/core.py,sha256=
|
|
18
|
-
cucu/cli/run.py,sha256=
|
|
17
|
+
cucu/cli/core.py,sha256=4-WCpdQVBbQnJeqehQRRMpEqrQtmoCSM4OUMzQi5Bss,24231
|
|
18
|
+
cucu/cli/run.py,sha256=uZOf1c5zAXT0ThaQvrb5kgXGwl80lAtHaTm5dDwolng,5909
|
|
19
19
|
cucu/cli/steps.py,sha256=hxsLymlYvF0uqUkDVq3s6heABkYnRo_SdQCpBdpb0e0,4009
|
|
20
20
|
cucu/cli/thread_dumper.py,sha256=Z3XnYSxidx6pqjlQ7zu-TKMIYZWk4z9c5YLdPkcemiU,1593
|
|
21
21
|
cucu/edgedriver_autoinstaller/README.md,sha256=tDkAWIqgRdCjt-oX1nYqikIC_FfiOEM2-pc5S5VbRLo,84
|
|
@@ -76,8 +76,8 @@ cucu/steps/tables.js,sha256=Os2a7Fo-cg03XVli7USvcnBVad4N7idXr-HBuzdLvVQ,945
|
|
|
76
76
|
cucu/steps/text_steps.py,sha256=Jj_GHoHeemNwVdUOdqcehArNp7WM-WMjljA4w0pLXuw,2576
|
|
77
77
|
cucu/steps/variable_steps.py,sha256=WSctH3_xcxjijGPYZlxp-foC_SIAAKtF__saNtgZJbk,2966
|
|
78
78
|
cucu/steps/webserver_steps.py,sha256=wWkpSvcSMdiskPkh4cqlepWx1nkvEpTU2tRXQmPDbyo,1410
|
|
79
|
-
cucu-1.
|
|
80
|
-
cucu-1.
|
|
81
|
-
cucu-1.
|
|
82
|
-
cucu-1.
|
|
83
|
-
cucu-1.
|
|
79
|
+
cucu-1.1.1.dist-info/METADATA,sha256=TRA607YPuLg8pBGBHzyVWKB4OYE3XPwH7i-h_pvt-yA,16547
|
|
80
|
+
cucu-1.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
81
|
+
cucu-1.1.1.dist-info/entry_points.txt,sha256=YEXTyEfIZbcV0GJ9R3Gfu3j6DcOJJK7_XHkJqE3Yiao,39
|
|
82
|
+
cucu-1.1.1.dist-info/licenses/LICENSE,sha256=WfgJYF9EaQoL_OeWr2Qd0MxhhFegDfzWSUmvDTwFxis,1721
|
|
83
|
+
cucu-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|