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

Fixing object hash generator #285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion pacifica/metadata/orm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ def available_hash_list(cls, columns_and_where_clause=None):
for any object in the database.
"""
where_clause = {k: v for k, v in columns_and_where_clause.items() if v}
where_clause['deleted'] = None

columns = list(columns_and_where_clause.keys())

Expand Down
3 changes: 3 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
min-similarity-lines=8
ignore-imports=yes
max-line-length=120

[MESSAGES CONTROL]
disable=super-with-arguments, raise-missing-from
2 changes: 1 addition & 1 deletion tests/core/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,4 @@ def test_client_update_unk_error(self):
client.update(class_type, params, post_body)
except PMClientError as ex:
self.assertTrue('301' in str(ex))
self.assertTrue('This is the error.'in str(ex))
self.assertTrue('This is the error.' in str(ex))
2 changes: 2 additions & 0 deletions tests/core/cmd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def requests_retry_session(retries=3, backoff_factor=0.5, status_forcelist=(500,
# The complication here is that older versions of the metadata service can't install
# in Python versions > 3.7. The psycopg2 package required for those older versions
# do not compile against Python > 3.7.


@pytest.mark.skipif(sys.version_info > (3, 8), reason='requires python3.7 or less')
class AdminCmdBase:
"""Test base class for setting up update environments."""
Expand Down