diff options
| -rw-r--r-- | bitbake/lib/toaster/tests/views/test_views.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/tests/views/test_views.py b/bitbake/lib/toaster/tests/views/test_views.py index f962e76287..06bf6c20a3 100644 --- a/bitbake/lib/toaster/tests/views/test_views.py +++ b/bitbake/lib/toaster/tests/views/test_views.py | |||
| @@ -41,7 +41,15 @@ class ViewTests(TestCase): | |||
| 41 | def setUp(self): | 41 | def setUp(self): |
| 42 | 42 | ||
| 43 | self.project = Project.objects.first() | 43 | self.project = Project.objects.first() |
| 44 | |||
| 44 | self.recipe1 = Recipe.objects.get(pk=2) | 45 | self.recipe1 = Recipe.objects.get(pk=2) |
| 46 | # create a file and to recipe1 file_path | ||
| 47 | file_path = f"/tmp/{self.recipe1.name.strip().replace(' ', '-')}.bb" | ||
| 48 | with open(file_path, 'w') as f: | ||
| 49 | f.write('foo') | ||
| 50 | self.recipe1.file_path = file_path | ||
| 51 | self.recipe1.save() | ||
| 52 | |||
| 45 | self.customr = CustomImageRecipe.objects.first() | 53 | self.customr = CustomImageRecipe.objects.first() |
| 46 | self.cust_package = CustomImagePackage.objects.first() | 54 | self.cust_package = CustomImagePackage.objects.first() |
| 47 | self.package = Package.objects.first() | 55 | self.package = Package.objects.first() |
