Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swain Lab
aliby
alibylite
Commits
9ad58c46
Commit
9ad58c46
authored
2 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
fix(tests): add data folder
parent
379c4159
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+0
-1
0 additions, 1 deletion
.gitignore
tests/agora/base_test.py
+1
-1
1 addition, 1 deletion
tests/agora/base_test.py
tests/agora/conftest.py
+10
-5
10 additions, 5 deletions
tests/agora/conftest.py
tests/agora/data/parameters.yaml
+1
-0
1 addition, 0 deletions
tests/agora/data/parameters.yaml
with
12 additions
and
7 deletions
.gitignore
+
0
−
1
View file @
9ad58c46
...
...
@@ -110,7 +110,6 @@ venv.bak/
omero_py/omeroweb/
omero_py/pipeline/
**.ipynb
data/
notebooks/
*.pdf
*.h5
...
...
This diff is collapsed.
Click to expand it.
tests/agora/base_test.py
+
1
−
1
View file @
9ad58c46
...
...
@@ -44,7 +44,7 @@ def test_to_yaml(yaml_file):
def
test_dict
(
example_dict
):
params
=
DummyParameters
(
**
example_dict
)
assert
params
.
to_dict
()
==
param
_dict
assert
params
.
to_dict
()
==
example
_dict
# Remove
params
.
to_yaml
(
"
outfile.yml
"
)
...
...
This diff is collapsed.
Click to expand it.
tests/agora/conftest.py
+
10
−
5
View file @
9ad58c46
...
...
@@ -3,24 +3,29 @@
Load data necessary to test agora.
"""
import
typing
as
t
from
pathlib
import
Path
from
pathlib
import
Path
,
PosixPath
import
pytest
@pytest.fixture
(
scope
=
"
module
"
)
def
yaml_file
():
return
Path
(
__file__
).
parent
/
"
data/parameters.yaml
"
def
data_dir
():
return
Path
(
__file__
).
parent
/
"
data
"
@pytest.fixture
(
scope
=
"
module
"
)
def
yaml_file
(
data_dir
:
PosixPath
):
return
data_dir
/
"
parameters.yaml
"
@pytest.fixture
(
scope
=
"
module
"
,
autouse
=
True
)
def
parameters_
example
()
->
t
.
Dict
:
def
example
_dict
()
->
t
.
Dict
:
return
dict
(
string
=
"
abc
"
,
number
=
1
,
boolean
=
True
,
dictionary
=
dict
(
empty_dict
=
dict
(),
#
empty_dict=dict(),
string
=
"
def
"
,
number
=
2
,
),
...
...
This diff is collapsed.
Click to expand it.
tests/agora/data/parameters.yaml
0 → 100644
+
1
−
0
View file @
9ad58c46
{}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment