Skip to content

Commit

Permalink
Updating test_metadata:
Browse files Browse the repository at this point in the history
- Added TestSpecParsingNamespace.py as it is a unit test and not run against an app.
  • Loading branch information
j-ororke committed Feb 19, 2025
1 parent 033cad4 commit 02c6d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,24 +141,8 @@ def __str__(self):
return f'{self.name}: {str(self.conformance)}'

"""
Location, XML namespaces, and XML Tags implementation below this line
XML namespaces and XML Tags dataclass implementation below this line
"""
'''
@dataclass
class Location:
"""Represents a location in a source file for error reporting"""
def __init__(self, file: str = "", line: int = 0):
self.file = file
self.line = line
def __str__(self):
if self.file and self.line:
return f"{self.file}:{self.line}"
elif self.file:
return self.file
return ""
'''

@dataclass
class XmlNamespace:
"""Represents a namespace definition from XML"""
Expand Down
2 changes: 2 additions & 0 deletions src/python_testing/test_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ not_automated:
reason: Unit test - does not run against an app
- name: TestSpecParsingDeviceType.py
reason: Unit test - does not run against an app
- name: TestSpecParsingNamespace.py
reason: Unit test - does not run against an app
- name: TestConformanceTest.py
reason: Unit test - does not run against an app
- name: TestSpecParsingSelection.py
Expand Down

0 comments on commit 02c6d80

Please sign in to comment.