Skip to content

Commit

Permalink
Cleaning up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smmaurer committed Apr 24, 2019
1 parent f3ff4d7 commit fe4e785
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_binary_logit.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

@pytest.fixture
def orca_session():
orca.clear_all()

d1 = {'a': np.random.random(100),
'b': np.random.randint(2, size=100)}

Expand Down
2 changes: 2 additions & 0 deletions tests/test_large_multinomial_logit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

@pytest.fixture
def orca_session():
orca.clear_all()

d1 = {'oid': np.arange(10),
'obsval': np.random.random(10),
'choice': np.random.choice(np.arange(20), size=10)}
Expand Down
2 changes: 2 additions & 0 deletions tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

@pytest.fixture
def orca_session():
orca.clear_all()

d1 = {'a': np.random.random(100),
'b': np.random.random(100)}

Expand Down
2 changes: 2 additions & 0 deletions tests/test_segmented_large_multinomial_logit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def orca_session():
Set up a clean Orca session with a couple of data tables.
"""
orca.clear_all()

d1 = {'oid': np.arange(100),
'group': np.random.choice(['A','B','C'], size=100),
'int_group': np.random.choice([3,4], size=100),
Expand Down
2 changes: 2 additions & 0 deletions tests/test_small_multinomial_logit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

@pytest.fixture
def orca_session():
orca.clear_all()

d1 = {'id': np.arange(100),
'building_id': np.arange(100),
'a': np.random.random(100),
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit fe4e785

Please sign in to comment.