Skip to content

Commit

Permalink
TESTFIX: Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpu-creare committed Apr 17, 2020
1 parent fc34bb2 commit c117b67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions podpac/core/algorithm/test/test_algorithm.py
Expand Up @@ -53,7 +53,7 @@ def test_multi_threading(self):

with podpac.settings:
podpac.settings.set_unsafe_eval(True)
podpac.settings["CACHE_OUTPUT_DEFAULT"] = False
podpac.settings["CACHE_NODE_OUTPUT_DEFAULT"] = False
podpac.settings["DEFAULT_CACHE"] = []
podpac.settings["RAM_CACHE_ENABLED"] = False

Expand All @@ -78,7 +78,7 @@ def test_multi_threading_cache_race(self):
with podpac.settings:
podpac.settings["MULTITHREADING"] = True
podpac.settings["N_THREADS"] = 3
podpac.settings["CACHE_OUTPUT_DEFAULT"] = True
podpac.settings["CACHE_NODE_OUTPUT_DEFAULT"] = True
podpac.settings["DEFAULT_CACHE"] = ["ram"]
podpac.settings["RAM_CACHE_ENABLED"] = True
podpac.settings.set_unsafe_eval(True)
Expand Down Expand Up @@ -113,7 +113,7 @@ def test_multi_threading_stress_nthreads(self):
with podpac.settings:
podpac.settings["MULTITHREADING"] = True
podpac.settings["N_THREADS"] = 8
podpac.settings["CACHE_OUTPUT_DEFAULT"] = False
podpac.settings["CACHE_NODE_OUTPUT_DEFAULT"] = False
podpac.settings["DEFAULT_CACHE"] = []
podpac.settings["RAM_CACHE_ENABLED"] = False
podpac.settings.set_unsafe_eval(True)
Expand All @@ -126,7 +126,7 @@ def test_multi_threading_stress_nthreads(self):
with podpac.settings:
podpac.settings["MULTITHREADING"] = True
podpac.settings["N_THREADS"] = 9 # 2 threads available after first 7
podpac.settings["CACHE_OUTPUT_DEFAULT"] = False
podpac.settings["CACHE_NODE_OUTPUT_DEFAULT"] = False
podpac.settings["DEFAULT_CACHE"] = []
podpac.settings["RAM_CACHE_ENABLED"] = False
podpac.settings.set_unsafe_eval(True)
Expand Down
4 changes: 2 additions & 2 deletions podpac/core/test/test_node.py
Expand Up @@ -71,11 +71,11 @@ def test_output(self):

def test_cache_output(self):
with podpac.settings:
podpac.settings["CACHE_OUTPUT_DEFAULT"] = False
podpac.settings["CACHE_NODE_OUTPUT_DEFAULT"] = False
node = Node()
assert not node.cache_output

podpac.settings["CACHE_OUTPUT_DEFAULT"] = True
podpac.settings["CACHE_NODE_OUTPUT_DEFAULT"] = True
node = Node()
assert node.cache_output

Expand Down

0 comments on commit c117b67

Please sign in to comment.