Skip to content

Commit

Permalink
gunittest docs: fix broken links (#934)
Browse files Browse the repository at this point in the history
* fix Python 3 syntax error, contributed by @petrasovaa
* fix broken links
  • Loading branch information
neteler committed Aug 28, 2020
1 parent f9399a7 commit 2aef826
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/python/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
today = date.today()

copy("_templates/layout.html.template", "_templates/layout.html")
with open("_templates/layout.html", "a+b") as f:
with open("_templates/layout.html", "a") as f:
f.write(footer_tmpl.substitute(grass_version=grass_version, year=today.year))
f.close()

Expand Down
10 changes: 5 additions & 5 deletions lib/python/docs/src/gunittest_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ Analyzing quality of source code
Besides testing, you can also use some tools to check the quality of your code
according to various standards and occurrence of certain code patterns.

For C/C++ code use third party solution `Coverity Scan`_ where GRASS GIS
is registered as project number `1038`_. Also you can use `Cppcheck`_
which will show a lot of errors which compilers do not check.
For C/C++ code we additionally use the third party solution `Coverity Scan`_
where GRASS GIS is registered as project number `1038`_. Also you can use
`Cppcheck`_ which will show a lot of errors which compilers do not check.
In any case, set your compiler to high error and warning levels,
check them and fix them in your code. Furthermore, `Travis-CI`_ is used
to check if the source code can still be compiled after submitting changes
Expand Down Expand Up @@ -718,8 +718,8 @@ Further reading
.. _unittest: https://docs.python.org/2/library/unittest.html
.. _doctest: https://docs.python.org/2/library/doctest.html
.. _Coverity Scan: https://scan.coverity.com/
.. _Travis-CI: https://travis-ci.org/GRASS-GIS/grass-ci
.. _Travis-CI: https://travis-ci.org/github/OSGeo/grass
.. _1038: https://scan.coverity.com/projects/1038
.. _Cppcheck: http://cppcheck.sourceforge.net/
.. _sandbox: https://svn.osgeo.org/grass/sandbox/wenzeslaus/grass_py_static_check.py
.. _GRASS GIS sample data: https://grass.osgeo.org/download/sample-data and http://fatra.cnr.ncsu.edu/data/ (nc_spm_full_v2alpha)
.. _GRASS GIS sample data: https://grass.osgeo.org/download/data/ and http://fatra.cnr.ncsu.edu/data/ (nc_spm_full_v2alpha)

0 comments on commit 2aef826

Please sign in to comment.