Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Mar 12, 2024
1 parent c057de1 commit 8b28051
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 145 deletions.
2 changes: 1 addition & 1 deletion geotrek/api/tests/test_mobile/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_launch_sync_mobile_fail(self, mocked_stdout, command):
@patch('geotrek.api.management.commands.sync_mobile.Command.handle', return_value=None,
side_effect=Exception('This is a test'))
@patch('sys.stdout', new_callable=StringIO)
def test_launch_sync_rando_no_rando_root(self, mocked_stdout, command):
def test_launch_sync_mobile_no_root(self, mocked_stdout, command):
task = launch_sync_mobile.apply()
log = mocked_stdout.getvalue()
self.assertNotIn("Done", log)
Expand Down
137 changes: 0 additions & 137 deletions geotrek/common/templates/common/sync_rando.html

This file was deleted.

2 changes: 0 additions & 2 deletions geotrek/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,7 @@ def api_bbox(bbox, buffer):
"paste_as_text": True
}

SYNC_RANDO_ROOT = os.path.join(VAR_DIR, 'data')
SYNC_MOBILE_ROOT = os.path.join(VAR_DIR, 'mobile')
SYNC_RANDO_OPTIONS = {}
SYNC_MOBILE_OPTIONS = {'skip_tiles': False}

'''
Expand Down
5 changes: 0 additions & 5 deletions geotrek/settings/env_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
'debug_toolbar.middleware.DebugToolbarMiddleware',
)


SYNC_RANDO_OPTIONS = {
'url': 'http://geotrek.local:8000' # Mandatory for dev mode. Must point to the same domain than SERVER_NAME in .env
}

LOGGING['loggers']['']['level'] = 'DEBUG'

CACHES['default']['BACKEND'] = 'django.core.cache.backends.locmem.LocMemCache'

0 comments on commit 8b28051

Please sign in to comment.