Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Commit 0dc9268

Browse files
committed
minor change to test
1 parent 0cebf07 commit 0dc9268

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# -*- coding: utf-8 -*-
2+
import pytest
3+
4+
from spirit.config import load_config
5+
from spirit.app import Application
6+
7+
8+
@pytest.fixture
9+
def app():
10+
return Application(load_config('testing'))

tests/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +0,0 @@
1-
# -*- coding: utf-8 -*-
2-
import pytest
3-
4-
from spirit.config import load_config
5-
from spirit.app import Application
6-
7-
8-
@pytest.fixture
9-
def app():
10-
return Application(load_config('testing'))

tests/test_index.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# -*- coding: utf-8 -*-
22
import pytest
33

4-
from . import app # noqa
5-
64

5+
@pytest.mark.usefixtures('app')
76
@pytest.mark.gen_test
87
def test_index(http_client, base_url):
98
response = yield http_client.fetch(base_url)

0 commit comments

Comments
 (0)