Skip to content

Commit

Permalink
Merge pull request #803 from padraic-shafer/fix-tests
Browse files Browse the repository at this point in the history
Update dependencies to make tests pass
  • Loading branch information
danielballan authored Apr 14, 2024
2 parents b336236 + 451e423 commit 23071d5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ docs/_build
pip-log.txt
pip-delete-this-directory.txt

# dotenv environment variables file
.env*

# Unit test / coverage reports
htmlcov/
.tox/
Expand Down
6 changes: 6 additions & 0 deletions databroker/mongo_normalized.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ def __init__(
def metadata(self):
return self._metadata

def structure(self):
return None

def keys(self):
return self._contents.keys()

Expand Down Expand Up @@ -1418,6 +1421,9 @@ def metadata(self):
"Metadata about this MongoAdapter."
return self._metadata

def structure(self):
return None

@property
def sorting(self):
return list(self._sorting)
Expand Down
3 changes: 2 additions & 1 deletion databroker/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ def delete_fs():
request.addfinalizer(delete_fs)

# Create indexes.
suitcase.mongo_normalized.Serializer(mds._db, fs._db)
serializer = suitcase.mongo_normalized.Serializer(mds._db, fs._db)
serializer.create_indexes()
return v0.Broker(mds, fs)
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ bluesky
codecov
coverage
flake8
glue-core <1.18
glueviz
matplotlib
mongomock
Expand Down

0 comments on commit 23071d5

Please sign in to comment.