ExCiteS / geokey

Platform for participatory mapping
http://geokey.org.uk
Other
55 stars 29 forks source link

Running tests removes user uploaded images! #302

Closed ghost closed 8 years ago

ghost commented 9 years ago

Also, leaves a bunch of test images inside the "symbols" folder.

oliverroick commented 9 years ago

Some tests empty the user-uploads directories after they were run. Otherwise you end up with loads of images after each test

ghost commented 9 years ago

Yeah but they also break my contributions with media files, because the server then returns 500 when accessing them.

So supposedly it's better to remove those test files one by one when they're not needed anymore, or remove only the ones that starts with "test...".

oliverroick commented 9 years ago

You could use different settings for tests. Import the dev settings and overwrite the directory for user uploads. That way you have independent directories for server and tests.

Run the tests using the --settings flag