Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit 01a70b1

Browse files
committed
Client Tests (To be continued)
1 parent 296fe90 commit 01a70b1

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

tests/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import pytest
2-
from .fixtures.fake_task import FakeTask0, FakeTask1, FakeTask2, FakeTask3
3-
from .fixtures.fake_workflow import FakeSequentialWorkflow
1+

tests/fixtures/fake_client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22

3-
from dotenv import load_dotenv
4-
53
import pytest
4+
from dotenv import load_dotenv
65

76
from zenaton.client import Client
87

@@ -27,5 +26,4 @@ def FakeClient():
2726
return Client(app_id, api_token, app_env)
2827

2928

30-
client = Client(app_id, api_token, app_env)
31-
print(client)
29+
client = Client(app_id, api_token, app_env)

tests/fixtures/fixtures.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pytest
2+
3+
4+
class DummyClass:
5+
pass
6+
7+
8+
@pytest.fixture
9+
def DummyObject():
10+
return DummyClass()

tests/test_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import pytest
2+
3+
4+
@pytest.mark.usefixtures("FakeClient")
5+
def test_test(FakeClient):
6+
assert hasattr(FakeClient, 'start_workflow')

0 commit comments

Comments
 (0)