Create new files for tests. Though still empty.
This commit is contained in:
		
							parent
							
								
									1c1e7f158f
								
							
						
					
					
						commit
						c6c7f51b15
					
				
					 9 changed files with 65 additions and 35 deletions
				
			
		
							
								
								
									
										12
									
								
								tests/common.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								tests/common.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| import unittest | ||||
| 
 | ||||
| import etiquette | ||||
| 
 | ||||
| 
 | ||||
| class EtiquetteTest(unittest.TestCase): | ||||
|     def setUp(self): | ||||
|         self.P = etiquette.photodb.PhotoDB(ephemeral=True) | ||||
| 
 | ||||
|     def tearDown(self): | ||||
|         self.P.close() | ||||
|         del self.P | ||||
							
								
								
									
										11
									
								
								tests/run_tests.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/run_tests.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| import unittest | ||||
| 
 | ||||
| import common | ||||
| import test_albums | ||||
| import test_bookmarks | ||||
| import test_photos | ||||
| import test_search | ||||
| import test_tags | ||||
| import test_users | ||||
| 
 | ||||
| unittest.main() | ||||
							
								
								
									
										17
									
								
								tests/test_albums.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/test_albums.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| import common | ||||
| 
 | ||||
| 
 | ||||
| class AlbumTest(common.EtiquetteTest): | ||||
|     def setUp(self): | ||||
|         super().setUp() | ||||
| 
 | ||||
| 
 | ||||
| class AlbumSumsTest(AlbumTest): | ||||
|     def test_sum_photos(self): | ||||
|         pass | ||||
| 
 | ||||
|     def test_sum_bytes_local(self): | ||||
|         pass | ||||
| 
 | ||||
|     def test_sum_bytes_recursive(self): | ||||
|         pass | ||||
							
								
								
									
										5
									
								
								tests/test_bookmarks.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/test_bookmarks.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| import common | ||||
| 
 | ||||
| 
 | ||||
| class BookmarkTest(common.EtiquetteTest): | ||||
|     pass | ||||
|  | @ -1,35 +0,0 @@ | |||
| import unittest | ||||
| import random | ||||
| 
 | ||||
| class EtiquetteTest(unittest.TestCase): | ||||
|     def setUp(self): | ||||
|         self.P = phototagger.PhotoDB(':memory:') | ||||
| 
 | ||||
| class AlbumTest(EtiquetteTest): | ||||
|     pass | ||||
| 
 | ||||
| 
 | ||||
| class BookmarkTest(EtiquetteTest): | ||||
|     pass | ||||
| 
 | ||||
| 
 | ||||
| class PhotoTest(EtiquetteTest): | ||||
|     pass | ||||
| 
 | ||||
| 
 | ||||
| class PhotoDBTest(EtiquetteTest): | ||||
|     pass | ||||
| 
 | ||||
| 
 | ||||
| class SearchTest(EtiquetteTest): | ||||
|     pass | ||||
| 
 | ||||
| 
 | ||||
| class TagTest(EtiquetteTest): | ||||
|     pass | ||||
| 
 | ||||
| 
 | ||||
| class UserTest(EtiquetteTest): | ||||
|     pass | ||||
| 
 | ||||
| 
 | ||||
							
								
								
									
										5
									
								
								tests/test_photos.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/test_photos.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| import common | ||||
| 
 | ||||
| 
 | ||||
| class PhotoTest(common.EtiquetteTest): | ||||
|     pass | ||||
							
								
								
									
										5
									
								
								tests/test_search.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/test_search.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| import common | ||||
| 
 | ||||
| 
 | ||||
| class SearchTest(common.EtiquetteTest): | ||||
|     pass | ||||
							
								
								
									
										5
									
								
								tests/test_tags.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/test_tags.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| import common | ||||
| 
 | ||||
| 
 | ||||
| class TagTest(common.EtiquetteTest): | ||||
|     pass | ||||
							
								
								
									
										5
									
								
								tests/test_users.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/test_users.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| import common | ||||
| 
 | ||||
| 
 | ||||
| class UserTest(common.EtiquetteTest): | ||||
|     pass | ||||
		Loading…
	
		Reference in a new issue