Testing for network grid #249
Replies: 2 comments 9 replies
-
This seems promising! |
Beta Was this translation helpful? Give feedback.
-
|
Another possibility that may be causing confusion: libproj ships with a set of grids on homebrew, and Does the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For testing proj's network grid, I want to be able to say "do this transformation without the network grid" and "do this transformation with the network grid, downloading if necessary."
However, currently it's tough to get consistent results locally when testing the network grid.
I suspect this is because the network grid will be downloaded locally the first time only, and then future calls will use the already downloaded grid. Which makes perfect sense for a normal user's behavior, but is bad for tests.
If I recall correctly, the network grid files get downloaded to the user writable directory. I recall as a work-around in the past, I was able to delete this directory every time I ran the test, but that's cumbersome.
Maybe instead there's some way we can use a one-off tmp_dir or something for each test to get this kind of behavior isolated per-test.
Beta Was this translation helpful? Give feedback.
All reactions