Skip to content

Commit

Permalink
Remove signac.testing (#863)
Browse files Browse the repository at this point in the history
* Remove signac.testing.

* Update changelog.

* Appease flake8.
  • Loading branch information
vyasr authored Nov 26, 2022
1 parent 986446b commit 934bc76
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 62 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Removed
- The signac.common.validate module (#853).
- The ``Config`` class (#860).
- The ``DictManager`` class (#858).
- The ``signac.testing`` module (#863).

Version 1
=========
Expand Down
3 changes: 1 addition & 2 deletions signac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
collectively accessible.
"""

from . import contrib, errors, sync, testing
from . import contrib, errors, sync
from ._synced_collections.backends.collection_json import (
BufferedJSONAttrDict as JSONDict,
)
Expand Down Expand Up @@ -44,5 +44,4 @@
"JSONDict",
"H5Store",
"H5StoreManager",
"testing",
]
44 changes: 0 additions & 44 deletions signac/testing.py

This file was deleted.

16 changes: 0 additions & 16 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# This software is licensed under the BSD 3-Clause License.
import gzip
import io
import itertools
import json
import logging
import os
Expand Down Expand Up @@ -2431,21 +2430,6 @@ def test_pickle_jobs_directly(self):
assert pickle.loads(pickle.dumps(job)) == job


class TestTestingProjectInitialization(TestProjectBase):

# Sanity check on all different combinations of inputs
def test_input_args(self):
for nested, listed, het in itertools.product([True, False], repeat=3):
with self.project.temporary_project() as tmp_project:
jobs = signac.testing.init_jobs(
tmp_project, nested=nested, listed=listed, heterogeneous=het
)
assert len(tmp_project) > 0
assert len(tmp_project) == len(jobs)
# check that call does not fail:
tmp_project.detect_schema()


class TestProjectStoreBase(test_h5store.TestH5StoreBase):

project_class = signac.Project
Expand Down

0 comments on commit 934bc76

Please sign in to comment.