🐛 fix(base.py): change return type of generator_build method to Generator[Vertex, None, None] for better type hinting and clarity

🐛 fix(base.py): add optional user_id parameter to _build and _build_list_of_nodes_and_update_params methods in Vertex class to support building with user-specific data
🐛 fix(base.py): add optional user_id parameter to _get_and_instantiate_class method in Vertex class to support building with user-specific data
🐛 fix(custom_component.py): add user_id attribute to CustomComponent class to store the user ID associated with the component
🐛 fix(custom_component.py): add user_id parameter to list_flows method in CustomComponent class to filter flows by user ID
🐛 fix(custom_component.py): add user_id parameter to get_flow method in CustomComponent class to filter flows by user ID
🐛 fix(conftest.py): add client parameter to active_user fixture in tests to fix missing dependency error
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-25 15:19:31 -03:00
commit 1a50bcd183
4 changed files with 33 additions and 19 deletions

View file

@ -170,7 +170,7 @@ def test_user(client):
@pytest.fixture(scope="function")
def active_user(session):
def active_user(client, session):
user = User(
username="activeuser",
password=get_password_hash(