File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 2
2
addopts = --strict-markers
3
3
markers =
4
4
slow: marks tests as slow (deselect with ' -m "not slow"' )
5
+ manual: marks tests as manual (deselect with ' -m "not manual"' )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ default=true
10
10
11
11
12
12
# Process Script Arguments
13
- for i in ${@ } ; do
13
+ for i in " ${@ } " ; do
14
14
case ${i} in
15
15
lint)
16
16
lint=true
@@ -27,6 +27,11 @@ for i in ${@}; do
27
27
default=
28
28
;;
29
29
30
+ manual)
31
+ slow=true
32
+ default=
33
+ ;;
34
+
30
35
* )
31
36
echo " Unknown argument: $i "
32
37
exit 1
47
52
48
53
# Run the test suite
49
54
if [ ${default} ] || [ ${tests} ]; then
50
- echo " ==> Running the test suite (excluding slow tests)"
51
- py.test -s -m " not slow"
55
+ echo " ==> Running the test suite (excluding slow and manual tests)"
56
+ py.test -s -m " not slow not manual "
52
57
fi
53
58
54
- # Run the rate-limit tests
59
+ # Run the slow tests
55
60
if [ ${slow} ]; then
56
61
echo " ==> Running the slow tests"
57
62
py.test -s -m " slow"
58
63
fi
64
+
65
+ # Run the slow tests
66
+ if [ ${manual} ]; then
67
+ echo " ==> Running the manual tests"
68
+ py.test -s -m " manual"
69
+ fi
Original file line number Diff line number Diff line change @@ -62,14 +62,22 @@ def recording_id(api, list_recordings):
62
62
63
63
64
64
# Tests
65
+ # We cannot create recordings programmatically, so we cannot automate testing
66
+ # of the Recordings API - we can only manually test the API after manually
67
+ # creating recordings.
68
+
69
+
70
+ @pytest .mark .manual
65
71
def test_recording_list (list_recordings ):
66
72
assert len (list_recordings ) > 0
67
73
assert are_valid_recording (list_recordings )
68
74
69
75
76
+ @pytest .mark .manual
70
77
def test_recording_detail (recording_id ):
71
78
assert is_valid_recording (recording_id )
72
79
73
80
81
+ @pytest .mark .manual
74
82
def test_delete_recording (api , recording_id ):
75
83
api .recordings .delete (recording_id )
You can’t perform that action at this time.
0 commit comments