Closed schwehr closed 4 years ago
@schwehr thanks for the issue! There shouldn't be anything that depends on the spaces, so this would be a fine change. I think changing the paths and any link HREFs in the STAC would do the trick; is this something you could submit a PR for?
Great! I'll try to get a PR done in the next week.
Working on it. I see this one failure before I change anything. Documenting so when it fails when I've got a PR, I don't stress over it.
git rev-parse HEAD
c87f073bacc82ae5dfb125f74cb29774678dad11
python -m unittest discover tests
.......................................................................F............................................
======================================================================
FAIL: test_full_copy_4 (test_catalog.FullCopyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/google/home/schwehr/src/pystac-schwehr/tests/test_catalog.py", line 644, in test_full_copy_4
self.assertTrue(os.path.exists(href))
AssertionError: False is not true
pystac/tests/data-files/catalogs/test-case-5/CBERS4/CBERS4MUX/CBERS4 MUX 027/
has spaces in the directory path. Unless the spaces are an explicit part of the tests, is it okay to remove them? I just got bit by these when usingxargs
e.g. trying to get to this file with some tools requires extra care with two directory components containing spaces.