Procházet zdrojové kódy

Consistent filtering of dir children in gist creation test

Harshg999 před 4 roky
rodič
revize
861e173ef1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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):