File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 11from codebender_testing .config import STAGING_SITE_URL
22from selenium .webdriver .common .by import By
33from codebender_testing .utils import SeleniumTestCase
4- import pytest
4+
55
66class TestDeleteAllSketches (SeleniumTestCase ):
77
8- @pytest .mark .requires_url (STAGING_SITE_URL )
98 def test_delete (self , tester_login ):
10- sketches = self .find_all ('#project_list>li .sketch-block-title >a' )
11- projects = []
12- for sketch in sketches :
13- projects .append (sketch .text )
14- for project in projects :
15- self .delete_project (project )
9+ try :
10+ sketches = self .find_all ('#project_list > li .sketch-block-title > a' )
11+ projects = []
12+ for sketch in sketches :
13+ projects .append (sketch .text )
14+ for project in projects :
15+ self .delete_project (project )
16+ except :
17+ print 'No sketches found'
You can’t perform that action at this time.
0 commit comments