Skip to content

Commit

Permalink
Move test location to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Knupp committed Feb 6, 2014
1 parent 398fef2 commit 4e3b3d4
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build:

test: clean build
source sandman_env/bin/activate && \
coverage run --source=sandman setup.py test && \
coverage run --source=test setup.py test && \
coverage html && \
coverage report

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ class TestSandmanForeignKeysBase(object):
"""Class to test edge-case foreign key conditions, using a database
explicitly built to contain these cases."""

DB_LOCATION = os.path.join(os.getcwd(), 'sandman', 'test', 'foreign_key')
DB_LOCATION = os.path.join(os.getcwd(), 'tests', 'foreign_key')

def setup_method(self, _):
"""Grab the database file from the *data* directory and configure the
app."""
shutil.copy(
os.path.join(
os.getcwd(),
'sandman',
'test',
'tests',
'data',
'foreign_key'),
self.DB_LOCATION)
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions sandman/test/test_sandman.py → tests/test_sandman.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@
class TestSandmanBase(object):
"""Base class for all sandman test classes."""

DB_LOCATION = os.path.join(os.getcwd(), 'sandman', 'test', 'chinook')
DB_LOCATION = os.path.join(os.getcwd(), 'tests', 'chinook')

def setup_method(self, _):
"""Grab the database file from the *data* directory and configure the
app."""
shutil.copy(
os.path.join(
os.getcwd(),
'sandman',
'test',
'tests',
'data',
'chinook'),
self.DB_LOCATION)
Expand Down

0 comments on commit 4e3b3d4

Please sign in to comment.