Skip to content

Commit

Permalink
Add client to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
taxe10 committed Jun 5, 2024
1 parent a564945 commit f8a063b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from tiled.catalog import from_uri
from tiled.client import Context
from tiled.client import Context, from_context
from tiled.server.app import build_app


Expand All @@ -24,3 +24,9 @@ def app(catalog):
def context(app):
with Context.from_app(app) as context:
yield context


@pytest.fixture
def client(context):
client = from_context(context)
yield client

0 comments on commit f8a063b

Please sign in to comment.