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 1
1
from codebender_testing .config import STAGING_SITE_URL
2
2
from selenium .webdriver .common .by import By
3
3
from codebender_testing .utils import SeleniumTestCase
4
- import pytest
4
+
5
5
6
6
class TestDeleteAllSketches (SeleniumTestCase ):
7
7
8
- @pytest .mark .requires_url (STAGING_SITE_URL )
9
8
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