@@ -32,27 +32,14 @@ def test_readme_words_counts():
32
32
assert len (readme_words ) >= 100 , "Kindly define README properly"
33
33
34
34
35
- #4 Readme Proper Description
36
- def test_readme_proper_desscription ():
37
- READMELOOKSGOOD = True
38
- readme = open ('README.md' ,'r' )
39
- readme_words = readme .read ().split ()
40
- readme .close ()
41
- for words in README_CONTENT_CHECK_FOR :
42
- if words not in readme_words :
43
- READMELOOKSGOOD = False
44
- pass
45
- assert READMELOOKSGOOD == True , "You have not defined all functions/classes in README.md"
46
-
47
-
48
- #5 function name had caps letter
35
+ #4 function name had caps letter
49
36
def test_funcation_had_cap_letter ():
50
37
functions = inspect .getmembers (session8 , inspect .isfunction )
51
38
for function in functions :
52
39
assert len (re .findall ('([A-Z])' , function [0 ])) == 0 , "You have used Capital letter(s) in your function names"
53
40
54
41
55
- #6 PEP8 Guidelines
42
+ #5 PEP8 Guidelines
56
43
def test_fourspace ():
57
44
lines = inspect .getsource (session8 )
58
45
spaces = re .findall ('\n +.' , lines )
@@ -61,13 +48,13 @@ def test_fourspace():
61
48
assert len (re .sub (r'[a-zA-Z#@\n\"\']' , '' , space )) % 4 == 0 ,"Your code intentation does not follow PEP8 guidelines"
62
49
63
50
64
- #7 check docstring exist
51
+ #6 check docstring exist
65
52
def test_docstring_length ():
66
53
a = session8 .check_fn_docs ()
67
54
assert a (session8 .mul ) == True
68
55
69
56
70
- #8 check next fibonacci number
57
+ #7 check next fibonacci number
71
58
def test_fibonacci ():
72
59
k = session8 .next_fibo_number ()
73
60
k ()
@@ -76,7 +63,7 @@ def test_fibonacci():
76
63
assert k () == 2
77
64
78
65
79
- #9
66
+ #8
80
67
def test_function_single_dict_call ():
81
68
c = session8 .function_counter ( session8 .add )
82
69
c ()
@@ -91,7 +78,7 @@ def test_function_single_dict_call():
91
78
92
79
93
80
94
- #10
81
+ #9
95
82
def test_function_calling_sep_dict ():
96
83
c = session8 .function_two_dict (session8 .add , session8 .userA )
97
84
c ()
0 commit comments