Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for particle diffusion #2209

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions python/test/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,19 @@ def dummy_catalogue(repo_path):
return arbor.load_catalogue(str(cat_path))


@_singleton_fixture
@repo_path()
def diffusion_catalogue(repo_path):
"""
Fixture that returns an `arbor.catalogue`
which contains mechanisms `neuron_with_diffusion`
and `synapse_with_diffusion`.
"""
path = repo_path / "test" / "unit" / "diffusion"
cat_path = _build_cat("diffusion", path)
return arbor.load_catalogue(str(cat_path))


@_fixture
class empty_recipe(arbor.recipe):
"""
Expand Down
4 changes: 2 additions & 2 deletions python/test/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ In subfolders `unit`/`unit_distributed`:

## Naming convention

- modules: `test_xxxs` (ending with `s` since module can consist of multiple classes)
- class(es): `TestXxxs` (ending with `s` since class can consist of multiple test functions)
- modules: `test_xxxs` (if applicable use the plural with `s` as modules can comprise multiple classes)
- class(es): `TestXxxs` (if applicable use the plural with `s` as classes can comprise multiple test functions)
- functions: `test_yyy`
Loading
Loading