Skip to content

Commit

Permalink
Merge branch 'modify_unit_test_validation' of https://github.com/khal…
Browse files Browse the repository at this point in the history
…edk2/omero_search_engine into modify_unit_test_validation
  • Loading branch information
khaledk2 committed Jul 19, 2024
2 parents 41bcf66 + e066e02 commit bbbf603
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def get_index_data_from_database(resource="all", backup="True"):
save_key_value_buckets,
)
import json
backup=json.loads(backup.lower())

backup = json.loads(backup.lower())
if resource != "all":
sql_st = sqls_resources.get(resource)
if not sql_st:
Expand Down
4 changes: 3 additions & 1 deletion omero_search_engine/validation/results_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ def get_results_db(self, operator=None):
search_omero_app.logger.info("Getting results from postgres")
if self.type == "buckets":
if self.name:
sql = query_methods["available_values_for_key"].substitute(name=self.name)
sql = query_methods["available_values_for_key"].substitute(
name=self.name
)
conn = search_omero_app.config["database_connector"]
self.postgres_results = conn.execute_query(sql)
elif self.value:
Expand Down
4 changes: 3 additions & 1 deletion unit_tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
]
}

contains_not_contains_queries = {"image": [["cell line", "hel"], ["gene symbol", "cep"]]}
contains_not_contains_queries = {
"image": [["cell line", "hel"], ["gene symbol", "cep"]]
}

query_in = {
"image": [
Expand Down

0 comments on commit bbbf603

Please sign in to comment.