Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
e0468d13
Unverified
Commit
e0468d13
authored
Jan 17, 2022
by
Matheus Felipe
Browse files
Remove unnecessary whitespace
parent
eeaa7c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/tests/test_validate_format.py
View file @
e0468d13
...
@@ -158,7 +158,6 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -158,7 +158,6 @@ class TestValidadeFormat(unittest.TestCase):
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
err_msgs
,
[])
self
.
assertEqual
(
err_msgs
,
[])
def
test_check_description_with_first_char_is_not_capitalized
(
self
):
def
test_check_description_with_first_char_is_not_capitalized
(
self
):
...
@@ -217,9 +216,7 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -217,9 +216,7 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_auth
(
0
,
auth
)
err_msgs
=
check_auth
(
0
,
auth
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
err_msgs
,
[])
self
.
assertEqual
(
err_msgs
,
[])
def
test_check_auth_without_backtick
(
self
):
def
test_check_auth_without_backtick
(
self
):
...
@@ -229,7 +226,6 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -229,7 +226,6 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_auth
(
0
,
auth
)
err_msgs
=
check_auth
(
0
,
auth
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
err_msg
=
err_msgs
[
0
]
err_msg
=
err_msgs
[
0
]
...
@@ -246,7 +242,6 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -246,7 +242,6 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_auth
(
0
,
auth
)
err_msgs
=
check_auth
(
0
,
auth
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
2
)
self
.
assertEqual
(
len
(
err_msgs
),
2
)
err_msg_1
=
err_msgs
[
0
]
err_msg_1
=
err_msgs
[
0
]
...
@@ -264,7 +259,6 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -264,7 +259,6 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_auth
(
0
,
auth
)
err_msgs
=
check_auth
(
0
,
auth
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
err_msg
=
err_msgs
[
0
]
err_msg
=
err_msgs
[
0
]
...
@@ -278,9 +272,7 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -278,9 +272,7 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_https
(
0
,
https
)
err_msgs
=
check_https
(
0
,
https
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
err_msgs
,
[])
self
.
assertEqual
(
err_msgs
,
[])
def
test_check_https_with_invalid_https
(
self
):
def
test_check_https_with_invalid_https
(
self
):
...
@@ -290,7 +282,6 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -290,7 +282,6 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_https
(
0
,
https
)
err_msgs
=
check_https
(
0
,
https
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
err_msg
=
err_msgs
[
0
]
err_msg
=
err_msgs
[
0
]
...
@@ -304,9 +295,7 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -304,9 +295,7 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_cors
(
0
,
cors
)
err_msgs
=
check_cors
(
0
,
cors
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
len
(
err_msgs
),
0
)
self
.
assertEqual
(
err_msgs
,
[])
self
.
assertEqual
(
err_msgs
,
[])
def
test_check_cors_with_invalid_cors
(
self
):
def
test_check_cors_with_invalid_cors
(
self
):
...
@@ -316,7 +305,6 @@ class TestValidadeFormat(unittest.TestCase):
...
@@ -316,7 +305,6 @@ class TestValidadeFormat(unittest.TestCase):
with
self
.
subTest
():
with
self
.
subTest
():
err_msgs
=
check_cors
(
0
,
cors
)
err_msgs
=
check_cors
(
0
,
cors
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertIsInstance
(
err_msgs
,
list
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
self
.
assertEqual
(
len
(
err_msgs
),
1
)
err_msg
=
err_msgs
[
0
]
err_msg
=
err_msgs
[
0
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment