File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11## ** PyTestBehave Test Automation Framework**
22
3- ![ GitHub actions workflow status] ( https://img.shields.io/github/actions/workflow/status/argodevops/pyTestBehave/main )
3+ ![ GitHub actions workflow status] ( https://img.shields.io/github/actions/workflow/status/argodevops/pyTestBehave/main.yml )
44![ GitHub language count] ( https://img.shields.io/github/languages/count/argodevops/pyTestBehave )
55![ PyPI - License] ( https://img.shields.io/pypi/l/pytestbehave )
66![ PyPI - Version] ( https://img.shields.io/pypi/v/pytestbehave )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class XMLMessageBuilder:
1616 def __init__ (self , context ):
1717 self .faker = Faker ("en_GB" )
1818 self .context = context
19- self .environment = Environment (loader = FileSystemLoader ("templates/" ))
19+ self .environment = Environment (loader = FileSystemLoader ("templates/" ), autoescape = True )
2020
2121 def header (self , auth_token ):
2222 """builds request header for a message"""
Original file line number Diff line number Diff line change @@ -104,8 +104,12 @@ def type_in_locator(
104104 sensitive = False ,
105105 ):
106106 """Type in locator"""
107- logging .debug (
108- "Typing in locator %s text %s" , locator .get_formatted_locator (), text
107+ if sensitive :
108+ logging .debug (
109+ "Typing in locator %s text *****" , locator .get_formatted_locator ())
110+ else :
111+ logging .debug (
112+ "Typing in locator %s text %s" , locator .get_formatted_locator (), text
109113 )
110114 self .assert_element_displayed_and_click (locator )
111115 self .element_action .type (
You can’t perform that action at this time.
0 commit comments