Skip to content

Commit

Permalink
Move tests folder
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Sep 18, 2017
1 parent 2d2b593 commit e0c07f3
Show file tree
Hide file tree
Showing 19 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion runtests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ pushd %~dp0

call scripts/setenv.bat

make test
py.test src/roam.tests

if defined DOUBLECLICKED pause
2 changes: 1 addition & 1 deletion scripts/fabricate.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def exists(path):
def has_atimes(paths):
""" Return whether a file created in each path supports atimes and mtimes.
Return value is the same as used by file_has_atimes
Note: for speed, this only tests files created at the top directory
Note: for speed, this only roam.tests files created at the top directory
of each path. A safe assumption in most build environments.
In the unusual case that any sub-directories are mounted
on alternate file systems that don't support atimes, the build may
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_data_files():
icon_resources=[(1, icon)])

tests_target = dict(
script=r'tests\__main__.py',
script=r'roam.tests\__main__.py',
dest_base='Roam_tests',
icon_resources=[(1, icon)])

Expand Down Expand Up @@ -182,7 +182,7 @@ def run(self):
name='roam',
version=roam.__version__,
packages=find_packages('./src'),
package_dir={'': 'src', 'tests': 'tests'},
package_dir={'': 'src', 'roam.tests': 'roam.tests'},
url='',
license='GPL',
author='Digital Mapping Solutions',
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/__main__.py → src/roam.tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def excepthook(errorhandler, exctype, value, traceback):
errorhandler(exctype, value, traceback)
logger.debug("Uncaught exception", exc_info=(exctype, value, traceback))

LOG_FILENAME = 'roam-tests.log'
LOG_FILENAME = 'roam-roam.tests.log'
log_format = '%(levelname)s - %(asctime)s - %(module)s-%(funcName)s:%(lineno)d - %(message)s'
console_format = '%(levelname)s %(module)s-%(funcName)s:%(lineno)d - %(message)s'
formater = logging.Formatter(log_format)
Expand Down
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
@@ -1,12 +1,9 @@
import pytest
from mock import Mock

from roam.infodock import FeatureCursor, NoFeature

import tests.objects

layer = tests.objects.newmemorylayer()
layer = tests.objects.addfeaturestolayer(layer, 2)
layer = objects.newmemorylayer()
layer = objects.addfeaturestolayer(layer, 2)

features = layer.getFeatures()
featureone = features.next()
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.

0 comments on commit e0c07f3

Please sign in to comment.