* Python scripts: remove UTF-8 coding line. UTF-8 is the default with Python 3, no need for the coding line. Ref: https://github.com/OSGeo/grass/pull/1449#discussion_r593748122 * write `__init__.py` files as truly empty (flake8: W391)
@@ -2,5 +2,5 @@ set grass=%1
set python=C:\OSGeo4W64\bin\python3
call %grass% --tmp-location XY --exec g.extension g.download.location
-call %grass% --tmp-location XY --exec g.download.location url=http://fatra.cnr.ncsu.edu/data/nc_spm_full_v2alpha2.tar.gz dbase=%USERPROFILE%
+call %grass% --tmp-location XY --exec g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz dbase=%USERPROFILE%
call %grass% --tmp-location XY --exec %python% -m grass.gunittest.main --grassdata %USERPROFILE% --location nc_spm_full_v2alpha2 --location-type nc --min-success 60
@@ -6,7 +6,7 @@ set -e
grass79 --tmp-location XY --exec \
g.extension g.download.location
- g.download.location url=http://fatra.cnr.ncsu.edu/data/nc_spm_full_v2alpha2.tar.gz dbase=$HOME
+ g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz dbase=$HOME
python3 -m grass.gunittest.main \
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
+
"""
Created on Tue Nov 14 09:43:55 2017
@@ -1,4 +1,3 @@
@package animation.data
@package animation.provider
@package core.layerlist
@package datacatalog.dialogs
#
# wxGUI documentation build configuration file, created by
# sphinx-quickstart on Tue Jun 3 09:20:51 2014.
@package gui_core.simplelmgr
@package lmgr::frame
@package mapwin.analysis
@package rdigit.controller
Created on Mon Nov 26 11:57:54 2012
Created on Mon Nov 26 11:48:03 2012
@package rlisetup.sampling_frame
@@ -1,5 +1,4 @@
############################################################################
# utilities for generating HTML indices
# (C) 2003-2021 Markus Neteler and the GRASS Development Team
# generates keywords.html
# (c) 2013 by the GRASS Development Team, Luca Delucchi
# generates topics.html and topic_*.html
# (c) 2012 by the GRASS Development Team, Markus Neteler, Luca Delucchi
Created on Fri Jun 26 19:10:58 2015
# GRASS GIS 7.9 Documentation documentation build configuration file, created by
# sphinx-quickstart on Thu Aug 9 17:16:28 2012.
@@ -1,5 +1,3 @@
-#
-
from grass.gunittest.case import TestCase
from grass.gunittest.main import test
from grass.exceptions import ScriptError
-"""GRASS Python testing framework module for running from command line
+"""
+GRASS Python testing framework module for running from command line
Copyright (C) 2014 by the GRASS Development Team
This program is free software under the GNU General Public
-"""GRASS Python testing framework test case
+GRASS Python testing framework test case
-"""GRASS Python testing framework checkers
+GRASS Python testing framework checkers
-"""Specialized interfaces for invoking modules for testing framework
+Specialized interfaces for invoking modules for testing framework
-"""Utilities related to GRASS GIS for GRASS Python testing framework
+Utilities related to GRASS GIS for GRASS Python testing framework
-"""GRASS Python testing framework test files invoker (runner)
+GRASS Python testing framework test files invoker (runner)
-"""GRASS Python testing framework test loading functionality
+GRASS Python testing framework test loading functionality
-"""Testing framework module for multi report
+Testing framework module for multi report
-"""Testing framework module for running tests in Python unittest fashion
+Testing framework module for running tests in Python unittest fashion
-"""GRASS Python testing framework module for report generation
+GRASS Python testing framework module for report generation
# comment to get rid of the wrong import
# (if it is imported before all tests start and everything would fail)
# import this_module_or_package_does_not_exists__testing_import_error
import grass.lib.gis as libgis
import os
import ctypes
import sys
from __future__ import print_function
from unittest import TestCase, main
Tests assertion methods.
Tests assertion methods for 3D rasters.
Tests assertion methods for vectors.
Tests checkers functions
import subprocess
Tests checkers
import copy
-"""GRASS Python testing framework utilities (general and test-specific)
+GRASS Python testing framework utilities (general and test-specific)
# Copyright (C) 2012, Almar Klein, Ant1, Marius van Voorden
# This code is subject to the (new) BSD license:
# Copyright (C) 2012, Almar Klein
Created on Mon Mar 11 18:39:13 2013
@@ -1 +0,0 @@
from functools import wraps
from grass.exceptions import GrassError
from __future__ import (
nested_scopes,
Created on Fri May 25 12:57:10 2012
@@ -1,6 +1,5 @@
-Luca Delucchi
+@author:Luca Delucchi
-"""@package grass.pygrass.messages
+@package grass.pygrass.messages
@brief PyGRASS message interface
@@ -1,3 +1,2 @@
from grass.pygrass.modules.interface import Module, MultiModule, ParallelModuleQueue
from grass.pygrass.modules import shortcuts
@@ -1,2 +1 @@
from grass.pygrass.modules.grid.grid import GridModule
generators,
Created on Tue Apr 2 18:57:42 2013
Created on Tue Apr 2 19:00:15 2013
Created on Tue Apr 2 18:40:39 2013
@@ -1,6 +1,3 @@
def docstring_property(class_doc):
"""Property attribute for docstrings.
Took from: https://gist.github.com/bfroehle/4041015
Created on Thu May 28 17:41:32 2015
Created on Tue Apr 2 18:31:47 2013
Created on Tue Apr 2 18:30:34 2013
Created on Tue Jun 24 09:43:53 2014
Created on Fri Jul 4 16:32:54 2014
Created on Tue Apr 2 18:37:02 2013
Authors: pietro
Created on Fri Aug 17 16:05:25 2012
from grass.pygrass.raster.raster_type import TYPE as RTYPE
import numpy as np
Created on Thu Jun 28 17:44:14 2012
Created on Thu Jun 28 17:44:45 2012
Created on Wed Jun 13 19:42:22 2012
Created on Mon Jun 18 13:22:38 2012
Created on Mon Jun 11 18:02:27 2012
Created on Mon Sep 15 17:09:40 2014