Coverage for check_python_install/__init__.py: 100%
13 statements
« prev ^ index » next coverage.py v7.1.0, created at 2024-05-10 06:54 +0200
« prev ^ index » next coverage.py v7.1.0, created at 2024-05-10 06:54 +0200
1# coding: utf-8
2"""
3@file
4@brief Module *check_python_install*.
5Checks other modules installation on CI.
6"""
8__version__ = "0.1.103"
9__author__ = "Xavier Dupré"
10__github__ = "https://github.com/sdpython/_check_python_install"
11__url__ = "http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/index.html"
12__downloadUrl__ = "https://github.com/sdpython/_check_python_install"
13__license__ = "MIT License"
14__blog__ = """
15<?xml version="1.0" encoding="UTF-8"?>
16<opml version="1.0">
17 <head>
18 <title>blog</title>
19 </head>
20 <body>
21 <outline text="_check_python_install"
22 title="_check_python_install"
23 type="rss"
24 xmlUrl="http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/_downloads/rss.xml"
25 htmlUrl="http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/blog/main_0000.html" />
26 </body>
27</opml>
28"""
31def check(log=False):
32 """
33 Checks the library is working.
34 It raises an exception.
35 If you want to disable the logs:
37 @param log if True, display information, otherwise
38 @return 0 or exception
39 """
40 return True
43def _setup_hook(use_print=False):
44 """
45 if this function is added to the module,
46 the help automation and unit tests call it first before
47 anything goes on as an initialization step.
48 """
49 # we can check many things, needed module
50 # any others things before unit tests are started
51 if use_print:
52 print("Success: _setup_hook")