Skip to content

Commit c32c5b0

Browse files
Added few text Documented lines in the file.
1 parent 7cbbd68 commit c32c5b0

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

tests/people_test.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,24 @@
44
from assertpy.assertpy import assert_that, soft_assertions
55
from config import BASE_URI
66

7+
'''
8+
An integral part of any Test Automation Framework is the assertion library that you choose.
9+
A test that doesn't assert anything is of very less value.
10+
When it comes to choose an assertion library in Python, there are many options we can choose either something
11+
out of your test like Unit Tests, and bunch of other modules.
12+
We'll use Assertpy because it has really nice syntax and gives you many of the assert functions out of the box.
13+
It's easy to use.
14+
AssertPy is itself inspired from AssertJ which itself a very popular library in Java language.
15+
Read more in Readme file : https://github.com/assertpy/assertpy
16+
'''
17+
718

819
def test_read_all_has_kent():
920
# We use requests.get() with url to make a get request
1021
response = requests.get(BASE_URI)
11-
# Added the soft_assertions() - we use this when we want our Tests to run successfully (means failing one test won't
12-
# stop the Test script's execution). It will Collect all the failed tests, consolidate all of them with the errors
13-
# and return all the failed test failures in last with the failure messages.
22+
# Added the soft_assertions() - we use this when we want our Tests to run successfully (means failing one/any test
23+
# won't stop the Test script's execution). It will Collect all the failed tests, consolidate all of them with the
24+
# errors and return all the failed test failures in last with the failure messages.
1425
with soft_assertions():
1526
# response from requests has many useful properties.
1627
# we can assert on the response status code

0 commit comments

Comments
 (0)