Skip to content

Commit 673220b

Browse files
committed
Python: Minor cleanup of XmlParsingTest
1 parent b4c0065 commit 673220b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

python/ql/test/experimental/meta/ConceptsTest.qll

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -543,18 +543,16 @@ class HttpClientRequestTest extends InlineExpectationsTest {
543543
class XmlParsingTest extends InlineExpectationsTest {
544544
XmlParsingTest() { this = "XmlParsingTest" }
545545

546-
override string getARelevantTag() { result in ["xmlInput", "xmlVuln"] }
546+
override string getARelevantTag() { result in ["xmlVuln"] }
547547

548548
override predicate hasActualResult(Location location, string element, string tag, string value) {
549549
exists(location.getFile().getRelativePath()) and
550-
exists(XML::XMLParsing parsing |
551-
exists(XML::XMLParsingVulnerabilityKind kind |
552-
parsing.vulnerableTo(kind) and
553-
location = parsing.getLocation() and
554-
element = parsing.toString() and
555-
value = "'" + kind + "'" and
556-
tag = "xmlVuln"
557-
)
550+
exists(XML::XMLParsing parsing, XML::XMLParsingVulnerabilityKind kind |
551+
parsing.vulnerableTo(kind) and
552+
location = parsing.getLocation() and
553+
element = parsing.toString() and
554+
value = "'" + kind + "'" and
555+
tag = "xmlVuln"
558556
)
559557
}
560558
}

0 commit comments

Comments
 (0)