Explorar o código

Test to repro multiple Gist directories

Harshg999 %!s(int64=5) %!d(string=hai) anos
pai
achega
17da17f439
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      desktop/core/src/desktop/api2_tests.py

+ 3 - 0
desktop/core/src/desktop/api2_tests.py

@@ -726,6 +726,9 @@ class TestDocumentGist(object):
 
     assert_true(home_dir.children.filter(name='Gist').exists())
 
+    gist_dir2 = Directory.objects.create(name='Gist', owner=self.user, parent_directory=home_dir)
+    assert_raises(Directory.MultipleObjectsReturned, Document2.objects.get_gist_directory, self.user)
+
 
   def test_get_unfurl(self):
     # Unfurling on