-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Covers the initiation of SQLiteBroker class Includes the various extras needed to run the py.test/coverage scripts
- Loading branch information
1 parent
e1fd5f1
commit f1aa918
Showing
5 changed files
with
35 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
import pytest | ||
from .. import helpers | ||
import os | ||
import buddysuite.SeqBuddy | ||
import buddysuite.buddy_resources as br | ||
from hashlib import md5 | ||
import sqlite3 | ||
from multiprocessing.queues import SimpleQueue | ||
|
||
|
||
def test_sqlitebroker_init(hf): | ||
tmpdir = br.TempDir() | ||
broker = helpers.SQLiteBroker("%s%sdb.sqlite" % (tmpdir.path, hf.sep)) | ||
assert broker.db_file == "%s%sdb.sqlite" % (tmpdir.path, hf.sep) | ||
assert type(broker.connection) == sqlite3.Connection | ||
assert type(broker.cursor) == sqlite3.Cursor | ||
assert type(broker.broker_queue) == SimpleQueue | ||
assert broker.broker is None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters