-
-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
g.proj: fix wkt output on Windows (#3306)
Follows documentation of exportToWkt: Note that the returned WKT string should be freed with CPLFree() when no longer needed. It is the responsibility of the caller.
- Loading branch information
1 parent
045f43b
commit 2841c5f
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""g.proj tests | ||
(C) 2023 by the GRASS Development Team | ||
This program is free software under the GNU General Public | ||
License (>=v2). Read the file COPYING that comes with GRASS | ||
for details. | ||
:author: Anna Petrasova | ||
""" | ||
|
||
from grass.gunittest.case import TestCase | ||
from grass.gunittest.main import test | ||
from grass.gunittest.gmodules import SimpleModule | ||
|
||
|
||
class GProjWKTTestCase(TestCase): | ||
"""Test g.proj with WKT output""" | ||
|
||
def test_wkt_output(self): | ||
"""Test if g.proj returns WKT""" | ||
module = SimpleModule("g.proj", flags="w") | ||
self.assertModule(module) | ||
self.assertIn("PROJCRS", module.outputs.stdout) | ||
|
||
|
||
if __name__ == "__main__": | ||
test() |