Explorar o código

Consistent filtering of dir children in gist creation test

Harshg999 %!s(int64=4) %!d(string=hai) anos
pai
achega
861e173ef1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      desktop/core/src/desktop/api2_tests.py

+ 2 - 2
desktop/core/src/desktop/api2_tests.py

@@ -750,11 +750,11 @@ class TestDocumentGist(object):
   def test_gist_directory_creation(self):
     home_dir = Directory.objects.get_home_directory(self.user)
 
-    assert_false(home_dir.children.filter(name='Gist').exists())
+    assert_false(home_dir.children.filter(name=Document2.GIST_DIR, owner=self.user).exists())
 
     Document2.objects.get_gist_directory(self.user)
 
-    assert_true(home_dir.children.filter(name='Gist').exists())
+    assert_true(home_dir.children.filter(name=Document2.GIST_DIR, owner=self.user).exists())
 
 
   def test_get_unfurl(self):