Commit 8acadb53 authored by acpaquette's avatar acpaquette Committed by Jesse Mapel
Browse files

ALE Spice Directory Fix (#382)

* Set mission directories to an empty list if ALESPICEROOT is not set

* Removed ALESPICEROOT environment variable not set warning

* Add and update tests for when no ALESPICEROOT is set
parent 93c0743b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ else:
try:
    spice_root = os.environ['ALESPICEROOT']
except:
    warnings.warn('ALESPICEROOT environment variable not set, Spice Drivers will not function correctly')
    spice_root = None

# bring ale stuff into main ale module
+2 −3
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ import ale

def test_env_not_set(monkeypatch):
    monkeypatch.delenv('ALESPICEROOT', raising=False)
    with pytest.warns(UserWarning, match='ALESPICEROOT environment variable not set'):
    reload(ale)
    assert not ale.spice_root