Skip to content

Commit

Permalink
couple test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Jan 16, 2025
1 parent ab25a33 commit e7eafeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_run_workflow__on_url(self):
with self.perf_test as _:
_.run_workflow__on_url(url)
_.print()
assert _.perf_test_duration.duration__total < 5 # shower in GitHub Actions (locally it's around 1.5)
assert _.perf_test_duration.duration__total < 6 # shower in GitHub Actions (locally it's around 1.5)

# # contains=['models__from_edges', 'edges', 'add_node', 'new_dict_node', 'add_property'],
# @trace_calls(contains=['models__from_edges', 'edges' , 'add_node'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from typing import Any
import pytest
from typing import Any
from unittest import TestCase
from osbot_utils.utils.Env import in_github_action
from mgraph_ai.providers.json.MGraph__Json import MGraph__Json
from mgraph_ai.providers.json.domain.Domain__MGraph__Json__Graph import Domain__MGraph__Json__Graph
from mgraph_ai.providers.json.domain.Domain__MGraph__Json__Node__Dict import Domain__MGraph__Json__Node__Dict
Expand Down Expand Up @@ -142,6 +144,9 @@ def test__regression__call_7__add_property_linear_degradation(self):
# HYP-2: Each property addition scans all existing edges

def test__bug__check_for_property_section__in_add_property(self):
if in_github_action():
pytest.skip("test only stable locally")

class Bug__Domain__MGraph__Json__Node__Dict(Domain__MGraph__Json__Node__Dict):
def add_property__update_existing(self, name: str, value: Any): # the code below is the actual code from the add_property method (the first part)
for edge in self.models__from_edges():
Expand Down

0 comments on commit e7eafeb

Please sign in to comment.