TerekhovaKate commented on code in PR #7400:
URL: https://github.com/apache/trafficcontrol/pull/7400#discussion_r1134309379


##########
traffic_ops/testing/api_contract/v4/conftest.py:
##########
@@ -0,0 +1,94 @@
+import pytest
+from trafficops.tosession import TOSession
+from urllib.parse import urlparse
+import sys 
+import json
+from random import randint
+import logging
+
+
+""" 
+Passing in Traffic Ops Arguments [Username, Password, Url and Hostname] from 
Command Line
+"""
+def pytest_addoption(parser):

Review Comment:
   https://docs.pytest.org/en/7.1.x/example/simple.html
   ```python3
   # content of conftest.py
   
   def pytest_addoption(parser):
       parser.addoption(
           "--cmdopt", action="store", default="type1", help="my option: type1 
or type2"
       )
   
   
   @pytest.fixture
   def cmdopt(request):
       return request.config.getoption("--cmdopt")
       better practice to add **help** section 
       validation for type of param type=str/int could be useful as well
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to