summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Radovanovic <74266147+IgorWounds@users.noreply.github.com>2023-05-16 23:39:58 +0200
committerGitHub <noreply@github.com>2023-05-16 21:39:58 +0000
commit9beba4cf740f3e0b984b4e994f75b42f64a48930 (patch)
tree243e20529848d81c91395ca857264483be8fdd31
parent0f3497a3c170770ca37d1d1e155a78e6a2c4bdce (diff)
Fix file edge case (#5033)
* Fix file edge case * edge case --------- Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
-rw-r--r--openbb_terminal/core/integration_tests/integration_test_coverage.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbb_terminal/core/integration_tests/integration_test_coverage.py b/openbb_terminal/core/integration_tests/integration_test_coverage.py
index ca107ab6711..ef9dcffd7c6 100644
--- a/openbb_terminal/core/integration_tests/integration_test_coverage.py
+++ b/openbb_terminal/core/integration_tests/integration_test_coverage.py
@@ -88,12 +88,16 @@ def create_matching_dict() -> dict:
"screener_controller.py",
),
os.path.join(".", "openbb_terminal", "terminal_controller.py"),
+ os.path.join(
+ ".", "openbb_terminal", "stocks", "comparison_analysis", "ca_controller.py"
+ ),
]
test_paths = [
os.path.join("mutual_funds", "test_mutual_fund.openbb"),
os.path.join("stocks", "test_disc.openbb"),
os.path.join("stocks", "test_options_screen_ca.openbb"),
os.path.join("terminal", "test_news.openbb"),
+ os.path.join("stocks", "test_ca.openbb"),
]
return dict(zip(controller_paths, test_paths))
@@ -116,6 +120,11 @@ def match_controller_with_test(controllers: list, tests: list) -> dict:
matched[controller] = test
tests.remove(test)
+ for i in tests:
+ # Handle edge case as two controllers share the same integration test
+ if re.search(r"test_ca.openbb", i):
+ tests.remove(i)
+
if len(tests) > 0:
console.print(f"[red]Unmatched tests: {tests}[/red]")