Skip to content

Commit

Permalink
Merge pull request #49 from cisagov/bugfix/pin-mongoengine
Browse files Browse the repository at this point in the history
Pin MongoEngine
  • Loading branch information
king-alexander authored Mar 22, 2023
2 parents 27decea + 96b8cfb commit 6953121
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def get_version(version_file):
"defusedxml",
"dnspython",
"docopt",
"mongoengine >= 0.16.3",
# MongoEngine 0.27.0 introduces a breaking change to the mongomock
# connection method. See #50 for more details.
"mongoengine >= 0.16.3,<0.27.0",
"python-dateutil >= 2.7.5",
"PyYAML >=4.2b1",
"redis >= 3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/admiral/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This file defines the version of this module."""
__version__ = "1.3.0"
__version__ = "1.3.1"
1 change: 1 addition & 0 deletions tests/cert_model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def connection():
# Third-Party Libraries
from mongoengine import connect

# TODO: Update this connection method. See #50 for more details.
connect(host="mongomock://localhost", alias="default")


Expand Down
1 change: 1 addition & 0 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ def test_load_config_valid():

def test_connect_from_config_valid(valid_config):
"""Test that a valid configuration connects to appropriate connections."""
# TODO: Update this connection method. See #50 for more details.
util.connect_from_config(valid_config)

0 comments on commit 6953121

Please sign in to comment.