Skip to content

Commit b0dced2

Browse files
test cases updated
1 parent ac9c1fd commit b0dced2

12 files changed

+24
-12
lines changed

docs/command_line_usage.rst renamed to docs/source/command_line_usage.rst

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ Usages:
1515
rp -n 10 -p
1616
1717
optional arguments:
18-
-h, --help show this help message and exit
19-
-n N Number of random profiles
20-
21-
-f, --fullname Get full name instead of first name
22-
-p, --profile Get full profile instead of first name
23-
-l, --lastname Get last name instead of first name
24-
-ip, --ipv4 Get an ipv4 IP address
25-
-j, --jobtitle Get job title
26-
18+
-h, --help show this help message and exit
19+
-v, --version show program's version number and exit
20+
--server Start server
21+
--port PORT Port number
22+
-n N Number of random profiles
23+
-p, --profile Get full profile
24+
-f, --firstname Get first name
25+
-l, --lastname Get last name instead of first name
26+
--fullname Get full name instead of first name
27+
--ip Get an ipv4 IP address
28+
--job Get job title
29+
--address Get address
30+
2731
Get Random Profile:
2832
-------------------
2933
@@ -64,6 +68,7 @@ Get IPv4 Address:
6468
# n = number of random profiles, ip = ipv4
6569
rp -n 10 -ip
6670
71+
6772
Get Random Profile and Save to File:
6873
------------------------------------
6974
@@ -87,3 +92,4 @@ Get Random Profile version:
8792
rp --version
8893
8994
rp 0.2.3
95+
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/run_test_cases.rst renamed to docs/source/run_test_cases.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ Run test cases
33

44
For the test cases, we are using `pytest`. The test cases are located in the `tests` directory. To run the test cases, you can use the following command:
55

6+
.. code-block:: bash
7+
8+
# check the code coverage and run the test cases
9+
coverage run -m pytest
10+
coverage report
611
712
.. code-block:: bash
813
914
pytest tests
1015
11-
1216
.. code-block:: bash
1317
14-
flake8 . --ignore=E501
15-
18+
flake8 . --ignore=E501,E402
1619
1720
1821
You can also run the test cases with coverage:

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest
22
fastapi
33
uvicorn
4+
codecov

0 commit comments

Comments
 (0)