diff options
| author | jvoisin | 2015-12-02 17:47:12 +0100 |
|---|---|---|
| committer | jvoisin | 2015-12-02 17:47:12 +0100 |
| commit | 5d14fff49aa6c43091b2aaadc0944c7138b8efb0 (patch) | |
| tree | ebaebbc6526f292d24e178bca09cbdda76df7a93 | |
| parent | 8b181c6ca5c6fc699efbd6ff3f68e87401ae8ab5 (diff) | |
Add some pragma to avoid testing some functions
| -rw-r--r-- | libmat/mat.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmat/mat.py b/libmat/mat.py index 2634cc3..1dc51d9 100644 --- a/libmat/mat.py +++ b/libmat/mat.py | |||
| @@ -28,7 +28,7 @@ logging.basicConfig(filename=fname, level=LOGGING_LEVEL) | |||
| 28 | import strippers # this is loaded here because we need LOGGING_LEVEL | 28 | import strippers # this is loaded here because we need LOGGING_LEVEL |
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | def get_logo(): | 31 | def get_logo(): # pragma: no cover |
| 32 | """ Return the path to the logo | 32 | """ Return the path to the logo |
| 33 | """ | 33 | """ |
| 34 | if os.path.isfile(os.path.join(os.path.curdir, 'data/mat.png')): | 34 | if os.path.isfile(os.path.join(os.path.curdir, 'data/mat.png')): |
| @@ -39,7 +39,7 @@ def get_logo(): | |||
| 39 | return '/usr/local/share/pixmaps/mat.png' | 39 | return '/usr/local/share/pixmaps/mat.png' |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | def get_datafile_path(filename): | 42 | def get_datafile_path(filename): # pragma: no cover |
| 43 | """ Return the path to $filename | 43 | """ Return the path to $filename |
| 44 | :param string filename: | 44 | :param string filename: |
| 45 | """ | 45 | """ |
| @@ -50,7 +50,7 @@ def get_datafile_path(filename): | |||
| 50 | return filepath | 50 | return filepath |
| 51 | 51 | ||
| 52 | 52 | ||
| 53 | def list_supported_formats(): | 53 | def list_supported_formats(): # pragma: no cover |
| 54 | """ Return a list of all locally supported fileformat. | 54 | """ Return a list of all locally supported fileformat. |
| 55 | It parses that FORMATS file, and removes locally | 55 | It parses that FORMATS file, and removes locally |
| 56 | non-supported formats. | 56 | non-supported formats. |
| @@ -70,7 +70,7 @@ def list_supported_formats(): | |||
| 70 | return localy_supported | 70 | return localy_supported |
| 71 | 71 | ||
| 72 | 72 | ||
| 73 | class XMLParser(xml.sax.handler.ContentHandler): | 73 | class XMLParser(xml.sax.handler.ContentHandler): # pragma: no cover |
| 74 | """ Parse the supported format xml, and return a corresponding | 74 | """ Parse the supported format xml, and return a corresponding |
| 75 | list of dict | 75 | list of dict |
| 76 | """ | 76 | """ |
