Skip to content

Commit

Permalink
Fix a test assertion and disable irrelevant check
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostkowski committed Sep 20, 2024
1 parent a8596c6 commit 63a9fb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/unitTests/test-xml/test-enriched-namespaces.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema"
stylesheet="../../../src/xml/enriched-namespaces.xsl">

<!-- Passing truthy value to avoid raising an error due to missing parameter
value. It's safe as the test doesn't use a file associated with the variable
anyway. -->
<x:param name="enrichedNamespacesPath" select="true()"/>

<x:scenario label="Scenario testing completeness of the generated enriched namespaces">
<x:context href="../../ePO-default-config/namespaces.xml" select="/"/>
<x:variable name="userNamespacesCnt" as="xs:integer"
Expand All @@ -13,6 +18,6 @@
<x:expect label="there are user-defined namespaces"
test="fn:count(*:prefixes/*:prefix) >= $userNamespacesCnt"/>
<x:expect label="there is an internal namespace"
test="*:prefixes/*:prefix[@name = 'core-shape'] = 'http://data.europa.eu/a4g/data-shape#'"/>
test="*:prefixes/*:prefix[@name = 'core-shape']/@value = 'http://data.europa.eu/a4g/data-shape#'"/>
</x:scenario>
</x:description>

0 comments on commit 63a9fb4

Please sign in to comment.