Move tests dir to root project folder
|
@ -8,14 +8,14 @@ import tempfile
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# test_directory is what we pass nose.run for where to find tests
|
# test_directory is what we pass nose.run for where to find tests
|
||||||
test_directory = os.path.dirname(os.path.abspath(__file__))
|
test_directory = os.path.abspath('tests')
|
||||||
|
|
||||||
# create a temporary directory to use for the application directory while running tests
|
# create a temporary directory to use for the application directory while running tests
|
||||||
temporary_application_directory = tempfile.mkdtemp('-elodie-tests')
|
temporary_application_directory = tempfile.mkdtemp('-elodie-tests')
|
||||||
os.environ['ELODIE_APPLICATION_DIRECTORY'] = temporary_application_directory
|
os.environ['ELODIE_APPLICATION_DIRECTORY'] = temporary_application_directory
|
||||||
|
|
||||||
# copy config.ini-sample over to the test application directory
|
# copy config.ini-sample over to the test application directory
|
||||||
temporary_config_file_sample = '{}/config.ini-sample'.format(os.path.dirname(os.path.dirname(test_directory)))
|
temporary_config_file_sample = '{}/config.ini-sample'.format(os.path.dirname(test_directory))
|
||||||
temporary_config_file = '{}/config.ini'.format(temporary_application_directory)
|
temporary_config_file = '{}/config.ini'.format(temporary_application_directory)
|
||||||
shutil.copy2(
|
shutil.copy2(
|
||||||
temporary_config_file_sample,
|
temporary_config_file_sample,
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |