MCPcopy
hub / github.com/pimutils/vdirsyncer / etesync_app

Function etesync_app

tests/storage/etesync/test_main.py:19–32  ·  view source on GitHub ↗
(tmpdir_factory)

Source from the content-addressed store, hash-verified

17
18@pytest.fixture(scope='session')
19def etesync_app(tmpdir_factory):
20 sys.path.insert(0, os.path.join(os.path.dirname(__file__),
21 'etesync_server'))
22
23 db = tmpdir_factory.mktemp('etesync').join('etesync.sqlite')
24 shutil.copy(
25 os.path.join(os.path.dirname(__file__), 'etesync_server',
26 'db.sqlite3'),
27 str(db)
28 )
29
30 os.environ['ETESYNC_DB_PATH'] = str(db)
31 from etesync_server.wsgi import application
32 return application
33
34
35class EtesyncTests(StorageTests):

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected