cucu 1.3.10__py3-none-any.whl → 1.3.11__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.
cucu/cli/core.py CHANGED
@@ -35,9 +35,7 @@ from cucu.cli.steps import print_human_readable_steps, print_json_steps
35
35
  from cucu.config import CONFIG
36
36
  from cucu.db import (
37
37
  consolidate_database_files,
38
- db,
39
38
  finish_worker_record,
40
- get_first_cucu_run_filepath,
41
39
  )
42
40
  from cucu.lint import linter
43
41
  from cucu.utils import generate_short_id
@@ -524,16 +522,6 @@ def _generate_report(
524
522
  if os.path.exists(results_dir):
525
523
  consolidate_database_files(results_dir)
526
524
 
527
- db_path = os.path.join(results_dir, "run.db")
528
-
529
- try:
530
- db.init(db_path)
531
- db.connect(reuse_if_open=True)
532
- filepath = get_first_cucu_run_filepath()
533
- behave_init(filepath)
534
- finally:
535
- db.close()
536
-
537
525
  report_location = reporter.generate(
538
526
  results_dir, output, only_failures=only_failures
539
527
  )
cucu/fuzzy/core.py CHANGED
@@ -97,7 +97,7 @@ def find(
97
97
  str(index),
98
98
  str(direction.value),
99
99
  name_within_thing,
100
- "true"
100
+ "true",
101
101
  ]
102
102
 
103
103
  def execute_fuzzy_find():
@@ -109,5 +109,7 @@ def find(
109
109
  if fuzzy_return is None:
110
110
  logger.info("Fuzzy found no element.")
111
111
  return None
112
- logger.info("Fuzzy found element by search term {}".format(fuzzy_return[1]))
112
+ logger.info(
113
+ "Fuzzy found element by search term {}".format(fuzzy_return[1])
114
+ )
113
115
  return fuzzy_return[0]
cucu/reporter/html.py CHANGED
@@ -247,7 +247,9 @@ def generate(results, basepath, only_failures=False):
247
247
  "__CUCU_HTML_REPORT_SCENARIO_SUBHEADER_HANDLER"
248
248
  ]:
249
249
  try:
250
- sub_headers.append(handler(scenario))
250
+ sub_header = handler(scenario, feature)
251
+ if sub_header:
252
+ sub_headers.append(sub_header)
251
253
  except Exception:
252
254
  logger.warning(
253
255
  f'Exception while trying to run sub_headers hook for scenario: "{scenario["name"]}"\n{traceback.format_exc()}'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cucu
3
- Version: 1.3.10
3
+ Version: 1.3.11
4
4
  Summary: Easy BDD web testing
5
5
  Keywords: cucumber,selenium,behave
6
6
  Author: Domino Data Lab, Rodney Gomes, Cedric Young, Xin Dong, Kavya Yakkati, Kevin Garton, Joy Liao
@@ -7,7 +7,7 @@ cucu/browser/frames.py,sha256=IW7kzRJn5PkbMaovIelAeCWO-T-2sOTwqaYBw-0-LKU,3545
7
7
  cucu/browser/selenium.py,sha256=eUC2DZkhUIZi70sVTaNE_0AhanGTceyx_pCLIT7PN6o,13299
8
8
  cucu/browser/selenium_tweaks.py,sha256=oUIhWVhBZbc9qsmQUJMpIr9uUWKxtgZBcnySWU6Yttk,879
9
9
  cucu/cli/__init__.py,sha256=uXX5yVG1konJ_INdlrcfMg-Tt_5_cSx29Ed8R8v908A,62
10
- cucu/cli/core.py,sha256=On0i9QzGoJ6ZFEYwt1Ae50i8YZFAAqeB__ULW8jcXc4,26950
10
+ cucu/cli/core.py,sha256=gIc_r6qjfLxVvGiiJeSErdsXsoKWlhi9ca_EaBUx6fM,26673
11
11
  cucu/cli/run.py,sha256=XIGIACPieywM5Mi3k_CycM9eiRElzGNZdHlV0_TDSVY,6118
12
12
  cucu/cli/steps.py,sha256=lg5itVH_C-0_3RelWXv9X2qQUHggdxuxLCGwH5l1bf4,4210
13
13
  cucu/cli/thread_dumper.py,sha256=Z3XnYSxidx6pqjlQ7zu-TKMIYZWk4z9c5YLdPkcemiU,1593
@@ -24,7 +24,7 @@ cucu/formatter/json.py,sha256=fJ1dZBGwYD4OkhQFDE49MRKGNzsrhDzQYq-dUfsYh94,10589
24
24
  cucu/formatter/junit.py,sha256=dCyS47iHOqn5AZjsRpWCsDRkxxJ67IZy3wIlE5jjhoM,10249
25
25
  cucu/formatter/rundb.py,sha256=dKNlD-LXmrJ1Gm4OHI7Cs49eMuBGlBfwLz7NLISF5sg,7857
26
26
  cucu/fuzzy/__init__.py,sha256=ce4JRmaBF6oab6U99Qbpt7DrD3elhH32__-ND6fw5xc,104
27
- cucu/fuzzy/core.py,sha256=-H2xL0d1LmH9G_34GvLby7fr3o2sRlXUFsDml0cSG58,3380
27
+ cucu/fuzzy/core.py,sha256=CMxS5XifmWNtuDacGA8SA6dAUNuFR71WrNzZ2uK0_vc,3395
28
28
  cucu/fuzzy/fuzzy.js,sha256=7ppPmR8szoEQ2rfIsyTmtYDgTrNwXrP_g11y-qEITGk,13882
29
29
  cucu/helpers.py,sha256=l_YMmbuXjtBRo-MER-qe6soUIyjt0ey2BoSgWs4zYwA,36285
30
30
  cucu/hooks.py,sha256=3Z1mavU42XMQ0DZ7lVWwTB-BJYHRyYUOzzOtmkdIsow,7117
@@ -56,7 +56,7 @@ cucu/reporter/external/jquery-3.5.1.min.js,sha256=9_aliU8dGd2tb6OSsuzixeV4y_faTq
56
56
  cucu/reporter/external/jquery.dataTables.min.js,sha256=XNhaB1tBOSFMHu96BSAJpZOJzfZ4SZI1nwAbnwry2UY,90265
57
57
  cucu/reporter/external/popper.min.js,sha256=pS96pU17yq-gVu4KBQJi38VpSuKN7otMrDQprzf_DWY,19188
58
58
  cucu/reporter/favicon.png,sha256=9ikXLAmzfQzy2NQps_8CGaZog2FvQrOX8nnSZ0e1UmM,2161
59
- cucu/reporter/html.py,sha256=PhITO1Zxc3WVl1nU7maKpDeUvYmlkkv4cMNTFJnnTxM,19516
59
+ cucu/reporter/html.py,sha256=I0eRj3FDQO6Oo1dWVmQ3wrDKqEuKC8mpUwdp5IJpDQU,19608
60
60
  cucu/reporter/templates/feature.html,sha256=IBkwGiul-sRO5lT8q8VFXMUJx1owsAd1YbdDzziSjKw,3645
61
61
  cucu/reporter/templates/flat.html,sha256=JGsMq-IWz6YUpJX9hcN65-15HxcX3NJclOmMDtW3HZE,2358
62
62
  cucu/reporter/templates/index.html,sha256=xgPYNU-sozN-iOaEzyymoQ4LDRI75eHXngbAP0xDYls,2770
@@ -88,7 +88,7 @@ cucu/steps/text_steps.py,sha256=Jj_GHoHeemNwVdUOdqcehArNp7WM-WMjljA4w0pLXuw,2576
88
88
  cucu/steps/variable_steps.py,sha256=WSctH3_xcxjijGPYZlxp-foC_SIAAKtF__saNtgZJbk,2966
89
89
  cucu/steps/webserver_steps.py,sha256=wWkpSvcSMdiskPkh4cqlepWx1nkvEpTU2tRXQmPDbyo,1410
90
90
  cucu/utils.py,sha256=LCcs8sMzvdvH05N8P5QYO4lO6j-_PQC530mEAD96go8,10957
91
- cucu-1.3.10.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
92
- cucu-1.3.10.dist-info/entry_points.txt,sha256=11WRIhQM7LuUnQg1lAoZQoNvvBvYNN1maDgQS4djwJo,40
93
- cucu-1.3.10.dist-info/METADATA,sha256=9dT2yBir4G_XbcEOLVUidh5wQK0ukiNvM3x4EVy-mZo,16722
94
- cucu-1.3.10.dist-info/RECORD,,
91
+ cucu-1.3.11.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
92
+ cucu-1.3.11.dist-info/entry_points.txt,sha256=11WRIhQM7LuUnQg1lAoZQoNvvBvYNN1maDgQS4djwJo,40
93
+ cucu-1.3.11.dist-info/METADATA,sha256=diIgoAsSKpyOJOxNJv2qymSkVL1k697sbpoaI-pZ-0Q,16722
94
+ cucu-1.3.11.dist-info/RECORD,,
File without changes