cucu 1.3.10__tar.gz → 1.3.11__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.

Potentially problematic release.


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

Files changed (93) hide show
  1. {cucu-1.3.10 → cucu-1.3.11}/PKG-INFO +1 -1
  2. {cucu-1.3.10 → cucu-1.3.11}/pyproject.toml +1 -1
  3. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/cli/core.py +0 -12
  4. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/fuzzy/core.py +4 -2
  5. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/html.py +3 -1
  6. {cucu-1.3.10 → cucu-1.3.11}/README.md +0 -0
  7. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/__init__.py +0 -0
  8. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/ansi_parser.py +0 -0
  9. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/behave_tweaks.py +0 -0
  10. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/browser/__init__.py +0 -0
  11. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/browser/core.py +0 -0
  12. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/browser/frames.py +0 -0
  13. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/browser/selenium.py +0 -0
  14. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/browser/selenium_tweaks.py +0 -0
  15. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/cli/__init__.py +0 -0
  16. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/cli/run.py +0 -0
  17. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/cli/steps.py +0 -0
  18. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/cli/thread_dumper.py +0 -0
  19. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/config.py +0 -0
  20. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/db.py +0 -0
  21. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/edgedriver_autoinstaller/README.md +0 -0
  22. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/edgedriver_autoinstaller/__init__.py +0 -0
  23. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/edgedriver_autoinstaller/utils.py +0 -0
  24. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/environment.py +0 -0
  25. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/external/jquery/jquery-3.5.1.min.js +0 -0
  26. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/formatter/__init__.py +0 -0
  27. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/formatter/cucu.py +0 -0
  28. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/formatter/json.py +0 -0
  29. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/formatter/junit.py +0 -0
  30. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/formatter/rundb.py +0 -0
  31. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/fuzzy/__init__.py +0 -0
  32. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/fuzzy/fuzzy.js +0 -0
  33. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/helpers.py +0 -0
  34. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/hooks.py +0 -0
  35. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/.gitignore +0 -0
  36. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/README.md +0 -0
  37. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/cucurc.yml +0 -0
  38. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/data/www/example.html +0 -0
  39. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/features/cucurc.yml +0 -0
  40. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/features/environment.py +0 -0
  41. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/features/example.feature +0 -0
  42. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/features/lint_rules/sid.yaml +0 -0
  43. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/features/steps/__init__.py +0 -0
  44. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/init_data/features/steps/my_steps.py +0 -0
  45. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/language_server/__init__.py +0 -0
  46. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/language_server/core.py +0 -0
  47. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/lint/__init__.py +0 -0
  48. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/lint/linter.py +0 -0
  49. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/lint/rules/format.yaml +0 -0
  50. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/logger.py +0 -0
  51. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/matcher/__init__.py +0 -0
  52. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/matcher/core.py +0 -0
  53. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/page_checks.py +0 -0
  54. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/__init__.py +0 -0
  55. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/external/bootstrap.min.css +0 -0
  56. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/external/bootstrap.min.js +0 -0
  57. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/external/dataTables.bootstrap.min.css +0 -0
  58. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/external/dataTables.bootstrap.min.js +0 -0
  59. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/external/jquery-3.5.1.min.js +0 -0
  60. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/external/jquery.dataTables.min.js +0 -0
  61. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/external/popper.min.js +0 -0
  62. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/favicon.png +0 -0
  63. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/templates/feature.html +0 -0
  64. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/templates/flat.html +0 -0
  65. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/templates/index.html +0 -0
  66. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/templates/layout.html +0 -0
  67. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/reporter/templates/scenario.html +0 -0
  68. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/__init__.py +0 -0
  69. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/base_steps.py +0 -0
  70. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/browser_steps.py +0 -0
  71. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/button_steps.py +0 -0
  72. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/checkbox_steps.py +0 -0
  73. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/command_steps.py +0 -0
  74. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/draggable_steps.py +0 -0
  75. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/dropdown_steps.py +0 -0
  76. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/file_input_steps.py +0 -0
  77. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/filesystem_steps.py +0 -0
  78. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/flow_control_steps.py +0 -0
  79. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/image_steps.py +0 -0
  80. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/input_steps.py +0 -0
  81. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/link_steps.py +0 -0
  82. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/menuitem_steps.py +0 -0
  83. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/platform_steps.py +0 -0
  84. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/radio_steps.py +0 -0
  85. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/section_steps.py +0 -0
  86. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/step_utils.py +0 -0
  87. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/tab_steps.py +0 -0
  88. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/table_steps.py +0 -0
  89. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/tables.js +0 -0
  90. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/text_steps.py +0 -0
  91. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/variable_steps.py +0 -0
  92. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/steps/webserver_steps.py +0 -0
  93. {cucu-1.3.10 → cucu-1.3.11}/src/cucu/utils.py +0 -0
@@ -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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cucu"
3
- version = "1.3.10"
3
+ version = "1.3.11"
4
4
  description = "Easy BDD web testing"
5
5
  readme = "README.md"
6
6
  license = { text = "The Clear BSD License" }
@@ -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
  )
@@ -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]
@@ -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()}'
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