File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ options:
83
83
84
84
### Testing
85
85
86
+ This repository currently has **92% test coverage**.
87
+
86
88
Test datasets are stored in [/test/data](../test/data). The script has a full test suite:
87
89
* [test_samplesheet_validator.py](../test/test_samplesheet_validator.py)
88
90
Original file line number Diff line number Diff line change 5
5
name = "samplesheet_validator" ,
6
6
version = git_tag (),
7
7
description = "Python library for samplesheet validation" ,
8
- url = "https://github.com/moka-guys/samplesheet_validator/tree/feature/fix_stream_handler " ,
8
+ url = "https://github.com/moka-guys/samplesheet_validator" ,
9
9
author = "Rachel Duffin" ,
10
10
author_email = "rachel.duffin2@nhs.net" ,
11
11
license = "Apache License, Version 2.0" ,
Original file line number Diff line number Diff line change 10
10
from samplesheet_validator .__main__ import is_valid_dir , is_valid_file
11
11
12
12
13
+ def shutdown_logs (logger : object ) -> None :
14
+ """
15
+ To prevent duplicate filehandlers and system handlers close
16
+ and remove all handlers for a logging object
17
+ :return (None):
18
+ """
19
+ for handler in logger .handlers [:]:
20
+ logger .removeHandler (handler )
21
+ handler .close ()
22
+
23
+
13
24
def get_sscheck_obj (samplesheet : str ) -> object :
14
25
"""
15
26
Function to retrieve a samplesheet check object and carry out the
You can’t perform that action at this time.
0 commit comments