Skip to content

Commit

Permalink
pyproject: remove obsolete beautifulsoup4 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislaw committed Feb 8, 2023
1 parent 4beea90 commit cfc6250
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ keywords = [

[tool.poetry.dependencies]
python = "^3.6.2"
beautifulsoup4 = '>= 4.9.3'
lxml = '>= 4.6.2'
jinja2 = ">= 2.11.2"
toml = ">= 0.10.2"
Expand Down
4 changes: 1 addition & 3 deletions reqif/commands/anonymize/anonymize.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,4 @@ def _anonymize_attribute(attribute):
if attribute.attribute_type == SpecObjectAttributeType.STRING:
attribute.value = ANONYMIZED
elif attribute.attribute_type == SpecObjectAttributeType.XHTML:
attribute.value = (
f"<xhtml:div>{ANONYMIZED}</xhtml:div>"
)
attribute.value = f"<xhtml:div>{ANONYMIZED}</xhtml:div>"
4 changes: 1 addition & 3 deletions tests/unit/reqif/parsers/test_spec_object_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def test_02_attributes_xhtml():
spec_object = SpecObjectParser.parse(spec_object_xml)
assert spec_object.identifier == "TEST_SPEC_OBJECT_ID"

expected_xhtml = """
<reqif-xhtml:div>susan</reqif-xhtml:div>\n \
"""
expected_xhtml = "<reqif-xhtml:div>susan</reqif-xhtml:div>"
assert (
spec_object.attribute_map[
"_7f123ed4-98dd-4eed-b96a-edc8828963a8_CREATEDBY"
Expand Down

0 comments on commit cfc6250

Please sign in to comment.