File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 17
17
- id : check-shebang-scripts-are-executable
18
18
# - id: check-symlinks
19
19
# - id: check-toml
20
- # - id: check-xml
20
+ - id : check-xml
21
21
- id : check-yaml
22
22
- id : debug-statements
23
23
- id : destroyed-symlinks
27
27
- id : fix-byte-order-marker
28
28
- id : forbid-new-submodules
29
29
- id : mixed-line-ending
30
+ - id : no-commit-to-branch
30
31
- id : trailing-whitespace
31
32
- repo : https://github.com/pre-commit/pygrep-hooks
32
33
rev : v1.10.0
Original file line number Diff line number Diff line change 65
65
<label >Output intensity in SDA space</label >
66
66
<description >Output intensity in SDA space (*.anot)</description >
67
67
<channel >output</channel >
68
- <index >2 </index >
68
+ <index >1 </index >
69
69
</file >
70
70
</parameters >
71
71
<parameters advanced =" true" >
Original file line number Diff line number Diff line change 139
139
<default >256</default >
140
140
</integer >
141
141
</parameters >
142
- <parameters >
143
- <label >IO</label >
144
- <description >Input/output parameters.</description >
145
- </parameters >
146
142
</executable >
Original file line number Diff line number Diff line change
1
+ import os
2
+ from pathlib import Path
3
+
4
+ import pytest
5
+
6
+ cliDir = Path (__file__ ).parent / '..' / 'histomicstk' / 'cli'
7
+ xmlList = {
8
+ cli : cliDir / cli / f'{ cli } .xml' for cli in os .listdir (cliDir )
9
+ if (cliDir / cli ).is_dir () and (cliDir / cli / f'{ cli } .xml' ).is_file ()
10
+ }
11
+
12
+
13
+ @pytest .mark .parametrize ('cli' , xmlList .keys ())
14
+ def testXMLParsing (cli , caplog ):
15
+ import slicer_cli_web
16
+
17
+ slicer_cli_web .CLIArgumentParser (xmlList [cli ])
18
+ for record in caplog .records :
19
+ assert record .levelname not in {'WARNING' , 'ERROR' }
You can’t perform that action at this time.
0 commit comments