-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,12 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "omero_slurm_client" | ||
#version = "0.0.1" | ||
dynamic = ["version"] | ||
authors = [{ name = "Torec Luik", email = "[email protected]" }] | ||
description = "A python library for easy connecting between Omero (jobs) and a Slurm cluster" | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
keywords = ["omero", "slurm"] | ||
keywords = ["omero", "slurm", "high-performance-computing", "fair", "image-analysis", "bioimaging", "high-throughput-screening", "high-content-screening", "cytomine", "biomero", "biaflows"] | ||
license = { file = "LICENSE" } | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from omero_slurm_client import SlurmClient | ||
import pytest | ||
|
||
|
||
def test_slurm_client_init(): | ||
# Test default initialization | ||
slurm_client = SlurmClient() | ||
assert isinstance(slurm_client, SlurmClient) | ||
assert slurm_client.slurm_data_path == SlurmClient._DEFAULT_SLURM_DATA_PATH | ||
assert slurm_client.slurm_images_path == SlurmClient._DEFAULT_SLURM_IMAGES_PATH | ||
# Add more assertions for other default values | ||
|
||
# Test custom initialization | ||
slurm_client_custom = SlurmClient( | ||
host="custom_host", | ||
slurm_data_path="/custom/data/path", | ||
slurm_images_path="/custom/images/path", | ||
# Add more custom parameters | ||
) | ||
assert slurm_client_custom.host == "custom_host" | ||
assert slurm_client_custom.slurm_data_path == "/custom/data/path" | ||
assert slurm_client_custom.slurm_images_path == "/custom/images/path" | ||
# Add more assertions for other custom values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# tox (https://tox.readthedocs.io/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
envlist = py{36,39,312} | ||
requires = tox-conda | ||
|
||
[testenv] | ||
deps = | ||
pytest | ||
commands = | ||
pytest |