-
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.
Merge pull request #1 from brighthive/tests
chore: Move tests from MCI repo
- Loading branch information
Showing
6 changed files
with
65 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# vscode configuration | ||
.vscode/ | ||
|
||
# python artifacts | ||
*.py[abc] | ||
**/__pycache__ | ||
|
||
# pytest artifacts | ||
**/.pytest_cache | ||
|
||
# sample data provided by customer (DO NOT COMMIT) | ||
**/samples | ||
**/scripts | ||
**/*.sql | ||
|
||
# package distribution | ||
*.egg-info | ||
dist/* |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ url = "https://pypi.org/simple" | |
verify_ssl = true | ||
|
||
[dev-packages] | ||
expects = "*" | ||
|
||
[packages] | ||
flask = "*" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
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,19 @@ | ||
"""MCI Datastore Unit Tests | ||
A collection of unit tests for the MCI database module. | ||
""" | ||
|
||
import pytest | ||
from datetime import datetime | ||
from expects import expect, be, equal | ||
from mci_database.db.models import Gender, Individual | ||
|
||
|
||
class TestMCIDataStore(object): | ||
"""MCI database unit tests.""" | ||
|
||
def test_database_operations(self): | ||
# def test_database_operations(self, database): | ||
# add datasets to datastore | ||
pass |
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,15 @@ | ||
"""MCI ID Factory Unit Tests | ||
A collection of unit tests for the MCI ID module. | ||
""" | ||
|
||
from expects import expect, be, equal | ||
from mci_database.id_factory import MasterClientIDFactory | ||
|
||
|
||
class TestIDFactory(object): | ||
def test_create_unique_mci_id(self): | ||
id1 = MasterClientIDFactory.get_id() | ||
id2 = MasterClientIDFactory.get_id() | ||
expect(id1).to_not(equal(id2)) |