[bitbake-devel] [PATCH 2/8] toaster: Move views tests to main testing module

Ed Bartosh ed.bartosh at linux.intel.com
Fri Oct 28 15:48:43 UTC 2016


From: Michael Wood <michael.g.wood at intel.com>

Consolidating all the tests to live in the same place to make them more
discoverable and consistent as well as not cluttering up the django app
directory.

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/tests/views/README                                 | 4 ++++
 lib/toaster/tests/views/__init__.py                            | 0
 lib/toaster/{toastergui/tests.py => tests/views/test_views.py} | 0
 3 files changed, 4 insertions(+)
 create mode 100644 bitbake/lib/toaster/tests/views/README
 create mode 100644 bitbake/lib/toaster/tests/views/__init__.py
 rename bitbake/lib/toaster/{toastergui/tests.py => tests/views/test_views.py} (100%)

diff --git a/lib/toaster/tests/views/README b/lib/toaster/tests/views/README
new file mode 100644
index 0000000..950c7c9
--- /dev/null
+++ b/lib/toaster/tests/views/README
@@ -0,0 +1,4 @@
+
+Django unit tests to verify classes and functions based on django Views
+
+To run just these tests use ./manage.py test tests.views
diff --git a/lib/toaster/tests/views/__init__.py b/lib/toaster/tests/views/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/tests/views/test_views.py
similarity index 100%
rename from lib/toaster/toastergui/tests.py
rename to lib/toaster/tests/views/test_views.py
-- 
2.1.4




More information about the bitbake-devel mailing list