Skip to content

Commit

Permalink
sqlite workaround: travis-ci/travis-ci#7873
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Jan 22, 2018
1 parent a692b77 commit 76a95af
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/unit/sync/test_status.py
@@ -1,3 +1,5 @@
import os

import pytest

from hypothesis import assume, given
Expand All @@ -6,11 +8,14 @@
from vdirsyncer.sync.status import SqliteStatus


@pytest.fixture(params=[
SqliteStatus
])
def new_status(request):
return request.param
if os.environ.get('CI', 'false') == 'true':
@pytest.fixture
def new_status(tmpdir):
return lambda: SqliteStatus(path=str(tmpdir.join('status.db')))
else:
@pytest.fixture
def new_status(tmpdir):
return lambda: SqliteStatus()


status_dict_strategy = st.dictionaries(
Expand Down

0 comments on commit 76a95af

Please sign in to comment.