Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit a84e165

Browse files
authored
Renames phdoc_static into _static (#384)
* Renames phdoc_static into _static * update log * fix path
1 parent 317547d commit a84e165

File tree

17 files changed

+68
-71
lines changed

17 files changed

+68
-71
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ _doc/sphinxdoc/source/blog/*.rst
248248
_doc/sphinxdoc/source/blog/feed-icon*.png
249249
_doc/sphinxdoc/source/blog/rss.xml
250250
_doc/sphinxdoc/source/phdoc_templates/*.html
251-
_doc/sphinxdoc/source/phdoc_static/reveal.js/*
251+
_doc/sphinxdoc/source/_static/reveal.js/*
252252
_doc/notebooks/.ipynb_checkpoints/*
253253
dist_module27/*
254254
auto_*.bat
@@ -263,7 +263,7 @@ _doc/notebooks/notebooks2.7z
263263
_doc/notebooks/listfiles7z.txt
264264
_doc/notebooks/notebooks.zip
265265
_doc/notebooks/notebooks2.zip
266-
_doc/sphinxdoc/source/phdoc_static/require.js
266+
_doc/sphinxdoc/source/_static/require.js
267267
_unittests/ut_cli/crypt_map.txt
268268
_unittests/ut_cli/crypt_status.txt
269269
crypt_status.txt
@@ -312,6 +312,6 @@ _unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/blog/rss.xml
312312
_unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/filechanges.rst
313313
_unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/index_*.rst
314314
_unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/LICENSE.txt
315-
_unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/phdoc_static
315+
_unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/_static
316316
_unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/README.rst
317317
_unittests/ut_helpgen/data_project/pp/_doc/sphinxdoc/source/python3_module_template

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
.. image:: https://github.com/sdpython/pyquickhelper/blob/master/_doc/sphinxdoc/source/phdoc_static/project_ico.png?raw=true
2+
.. image:: https://github.com/sdpython/pyquickhelper/blob/master/_doc/sphinxdoc/source/_static/project_ico.png?raw=true
33
:target: https://github.com/sdpython/pyquickhelper/
44

55
.. _l-README:

_doc/notebooks/example_nbimage.ipynb

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

_unittests/ut_filehelper/test_download_urls.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import os
55
import unittest
66
from pyquickhelper.pycode import ExtTestCase, get_temp_folder
7-
from pyquickhelper.loghelper import fLOG
87
from pyquickhelper.filehelper.download_helper import (
98
get_urls_content_timeout, local_url)
109
from pyquickhelper.filehelper.download_urls_helper import download_urls_in_folder_content
@@ -18,18 +17,14 @@ def test_download_urls_assert(self):
1817
[], folder=None), ValueError)
1918

2019
def test_download_urls(self):
21-
fLOG(
22-
__file__,
23-
self._testMethodName,
24-
OutputPrint=__name__ == "__main__")
2520
temp = get_temp_folder(__file__, 'temp_download_urls')
2621
urls = ['http://www.xavierdupre.fr',
2722
'http://www.xavierdupre.fr']
28-
get_urls_content_timeout(urls, folder=temp, fLOG=fLOG)
23+
get_urls_content_timeout(urls, folder=temp)
2924
content = os.listdir(temp)
3025
self.assertEqual(
3126
set(content), set(['dd5ba53e5e4efe59f0ce3b0ef.bin', 'summary.csv']))
32-
get_urls_content_timeout(urls, folder=temp, fLOG=fLOG)
27+
get_urls_content_timeout(urls, folder=temp)
3328
content2 = os.listdir(temp)
3429
self.assertEqual(set(content), set(content2))
3530
self.assertRaise(lambda: local_url(urls[0]), FileNotFoundError)
@@ -40,10 +35,6 @@ def test_download_urls(self):
4035
self.assertEqual(loc, u)
4136

4237
def test_download_urls_in_folder_content(self):
43-
fLOG(
44-
__file__,
45-
self._testMethodName,
46-
OutputPrint=__name__ == "__main__")
4738
temp = get_temp_folder(
4839
__file__, 'temp_download_urls_in_folder_content')
4940
this = os.path.abspath(os.path.dirname(__file__))
@@ -53,8 +44,8 @@ def test_download_urls_in_folder_content(self):
5344
summary = os.path.join(temp, 'summary.csv')
5445
with open(summary, 'r', encoding='utf-8') as f:
5546
content = f.read()
56-
self.assertIn('http://www.xavierdupre.fr', content)
47+
self.assertIn('https://api.github.com/', str(content))
5748

5849

5950
if __name__ == "__main__":
60-
unittest.main()
51+
unittest.main(verbosity=2)
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)