Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
597782a
1
Parent(s):
acb3fea
Get env test to verify in shared env
Browse files- test/test_env.py +4 -1
test/test_env.py
CHANGED
@@ -11,5 +11,8 @@ class TestJuliaProject(unittest.TestCase):
|
|
11 |
julia_helpers.install(julia_project=test_env_name, quiet=True)
|
12 |
Main = julia_helpers.init_julia(julia_project=test_env_name)
|
13 |
Main.eval("using SymbolicRegression")
|
14 |
-
|
|
|
|
|
|
|
15 |
# TODO: Delete the env at the end.
|
|
|
11 |
julia_helpers.install(julia_project=test_env_name, quiet=True)
|
12 |
Main = julia_helpers.init_julia(julia_project=test_env_name)
|
13 |
Main.eval("using SymbolicRegression")
|
14 |
+
Main.eval("using Pkg")
|
15 |
+
cur_project_dir = Main.eval("splitdir(dirname(Base.active_project()))[1]")
|
16 |
+
potential_shared_project_dirs = Main.eval("Pkg.envdir.(DEPOT_PATH)")
|
17 |
+
self.assertIn(cur_project_dir, potential_shared_project_dirs)
|
18 |
# TODO: Delete the env at the end.
|