From d7f5acdb2cfd8bc1b71a1b2f06773449c27ef297 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 7 Dec 2016 15:57:24 -0500 Subject: [PATCH] rename project --- {dbstorage => dbfilestorage}/__init__.py | 0 {dbstorage => dbfilestorage}/admin.py | 0 .../migrations/0001_initial.py | 0 {dbstorage => dbfilestorage}/migrations/__init__.py | 0 {dbstorage => dbfilestorage}/models.py | 0 {dbstorage => dbfilestorage}/storage.py | 0 {dbstorage => dbfilestorage}/test_files/kris.jpg | Bin {dbstorage => dbfilestorage}/tests.py | 8 ++++---- {dbstorage => dbfilestorage}/urls.py | 0 {dbstorage => dbfilestorage}/views.py | 0 tests/settings.py | 2 +- 11 files changed, 5 insertions(+), 5 deletions(-) rename {dbstorage => dbfilestorage}/__init__.py (100%) rename {dbstorage => dbfilestorage}/admin.py (100%) rename {dbstorage => dbfilestorage}/migrations/0001_initial.py (100%) rename {dbstorage => dbfilestorage}/migrations/__init__.py (100%) rename {dbstorage => dbfilestorage}/models.py (100%) rename {dbstorage => dbfilestorage}/storage.py (100%) rename {dbstorage => dbfilestorage}/test_files/kris.jpg (100%) rename {dbstorage => dbfilestorage}/tests.py (87%) rename {dbstorage => dbfilestorage}/urls.py (100%) rename {dbstorage => dbfilestorage}/views.py (100%) diff --git a/dbstorage/__init__.py b/dbfilestorage/__init__.py similarity index 100% rename from dbstorage/__init__.py rename to dbfilestorage/__init__.py diff --git a/dbstorage/admin.py b/dbfilestorage/admin.py similarity index 100% rename from dbstorage/admin.py rename to dbfilestorage/admin.py diff --git a/dbstorage/migrations/0001_initial.py b/dbfilestorage/migrations/0001_initial.py similarity index 100% rename from dbstorage/migrations/0001_initial.py rename to dbfilestorage/migrations/0001_initial.py diff --git a/dbstorage/migrations/__init__.py b/dbfilestorage/migrations/__init__.py similarity index 100% rename from dbstorage/migrations/__init__.py rename to dbfilestorage/migrations/__init__.py diff --git a/dbstorage/models.py b/dbfilestorage/models.py similarity index 100% rename from dbstorage/models.py rename to dbfilestorage/models.py diff --git a/dbstorage/storage.py b/dbfilestorage/storage.py similarity index 100% rename from dbstorage/storage.py rename to dbfilestorage/storage.py diff --git a/dbstorage/test_files/kris.jpg b/dbfilestorage/test_files/kris.jpg similarity index 100% rename from dbstorage/test_files/kris.jpg rename to dbfilestorage/test_files/kris.jpg diff --git a/dbstorage/tests.py b/dbfilestorage/tests.py similarity index 87% rename from dbstorage/tests.py rename to dbfilestorage/tests.py index 0997fd3..274c11d 100644 --- a/dbstorage/tests.py +++ b/dbfilestorage/tests.py @@ -21,7 +21,7 @@ class DBFileTest(TestCase): return default_storage.save(self.filepath, f) @override_settings( - DEFAULT_FILE_STORAGE="dbstorage.storage.DBStorage") + DEFAULT_FILE_STORAGE="dbfilestorage.storage.DBStorage") def test_upload(self): """ Test that the file storage uploads and puts in DB Properly """ name = self._upload() @@ -29,7 +29,7 @@ class DBFileTest(TestCase): self.assertTrue(DBFile.objects.filter(name=name).exists()) @override_settings( - DEFAULT_FILE_STORAGE="dbstorage.storage.DBStorage") + DEFAULT_FILE_STORAGE="dbfilestorage.storage.DBStorage") def test_equality(self): """ Test that the DB entry matches what is expected from the file """ name = self._upload() @@ -40,7 +40,7 @@ class DBFileTest(TestCase): self.assertEqual(dbf.content_type, 'image/jpeg') @override_settings( - DEFAULT_FILE_STORAGE="dbstorage.storage.DBStorage") + DEFAULT_FILE_STORAGE="dbfilestorage.storage.DBStorage") def test_open(self): """ Test that the storage mechanism can upload """ name = self._upload() @@ -49,7 +49,7 @@ class DBFileTest(TestCase): self.assertEqual(dbf.read(), f.read()) @override_settings( - DEFAULT_FILE_STORAGE="dbstorage.storage.DBStorage") + DEFAULT_FILE_STORAGE="dbfilestorage.storage.DBStorage") def test_exists(self): """ Test that the storage mechanism can check existance """ name = self._upload() diff --git a/dbstorage/urls.py b/dbfilestorage/urls.py similarity index 100% rename from dbstorage/urls.py rename to dbfilestorage/urls.py diff --git a/dbstorage/views.py b/dbfilestorage/views.py similarity index 100% rename from dbstorage/views.py rename to dbfilestorage/views.py diff --git a/tests/settings.py b/tests/settings.py index f8464b9..3ead56d 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -37,7 +37,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', - 'dbstorage', + 'dbfilestorage', ] MIDDLEWARE = [