Skip to content

Commit 746a970

Browse files
committed
fix: security fixes
1 parent 2b56693 commit 746a970

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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)

src/features/support/builder/example/examplerequestbuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"""

src/features/support/pageactions/basepage.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)