From 6089687a71ed17599a88066f853084ac9d65dc98 Mon Sep 17 00:00:00 2001 From: Roman Porozhnetov Date: Mon, 9 Oct 2023 01:31:46 +0200 Subject: [PATCH] bingo fixes --- bingo/tests/data/molecules/cml/std.json | 2 +- bingo/tests/data/molecules/compactmolecule/std.json | 2 +- bingo/tests/data/reactions/compactreaction/std.json | 2 +- bingo/tests/test_rsmiles/test_rsmiles.py | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bingo/tests/data/molecules/cml/std.json b/bingo/tests/data/molecules/cml/std.json index 023a75fd81..082ab2079a 100644 --- a/bingo/tests/data/molecules/cml/std.json +++ b/bingo/tests/data/molecules/cml/std.json @@ -3722,7 +3722,7 @@ { "query_id": 745, "query_type": "cml", - "expected": "\n\n \n \n \n \n \n 1\n \n \n 1\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 1\n \n \n \n \n \n 1\n \n \n 1\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 1\n \n \n 1\n \n \n \n \n \n 1\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 1\n \n \n 1\n \n \n \n \n 1\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n T\n \n \n \n \n C\n \n \n \n C\n \n \n C\n \n \n \n C\n \n \n \n C\n \n \n \n C\n \n \n C\n \n \n \n C\n \n \n \n \n W\n \n \n \n \n \n W\n \n \n W\n \n \n \n \n \n \n \n W\n \n \n \n \n \n W\n \n \n W\n \n \n \n \n \n \n \n \n T\n \n \n \n T\n \n \n \n \n C\n \n \n \n C\n \n \n C\n \n \n \n C\n \n \n \n \n \n T\n \n \n \n T\n \n \n \n \n \n W\n \n \n \n \n \n W\n \n \n W\n \n \n \n \n \n \n \n \n T\n \n \n \n \n W\n \n \n \n \n \n W\n \n \n W\n \n \n \n \n \n \n \n \n T\n \n \n \n T\n \n \n \n \n C\n \n \n \n C\n \n \n C\n \n \n \n C\n \n \n \n \n\n" + "expected": "111111111111111TCCCCCCCCWWWWWWTTCCCCTTWWWTWWWTTCCCC\n" }, { "query_id": 746, diff --git a/bingo/tests/data/molecules/compactmolecule/std.json b/bingo/tests/data/molecules/compactmolecule/std.json index 3402f39342..2a715c6499 100644 --- a/bingo/tests/data/molecules/compactmolecule/std.json +++ b/bingo/tests/data/molecules/compactmolecule/std.json @@ -3722,7 +3722,7 @@ { "query_id": 745, "query_type": "compactmolecule(0)", - "expected": "942f6642b01222a2a8d1b953c4477764" + "expected": "757a56ddfcbfe7e377b87037fb415a40" }, { "query_id": 746, diff --git a/bingo/tests/data/reactions/compactreaction/std.json b/bingo/tests/data/reactions/compactreaction/std.json index 3e71814fab..cd8d134a43 100644 --- a/bingo/tests/data/reactions/compactreaction/std.json +++ b/bingo/tests/data/reactions/compactreaction/std.json @@ -1447,7 +1447,7 @@ { "query_id": 290, "query_type": "compactreaction(0)", - "expected": "871fbada43b7c6c4b1c7a3298791bb1d" + "expected": "b0deb28fd1bd4350908254566b88b994" }, { "query_id": 291, diff --git a/bingo/tests/test_rsmiles/test_rsmiles.py b/bingo/tests/test_rsmiles/test_rsmiles.py index a6e774b14a..d63b34fa2f 100644 --- a/bingo/tests/test_rsmiles/test_rsmiles.py +++ b/bingo/tests/test_rsmiles/test_rsmiles.py @@ -1,11 +1,15 @@ import pytest from ..helpers import assert_calculate_query, query_cases - +from ..logger import logger class TestRsmiles: @pytest.mark.parametrize("query_id, expected", query_cases("rsmiles")) def test_molecular_weight(self, db, entities, query_id, expected): reaction = entities.get(query_id) result = db.rsmiles(reaction) + if result != expected: + logger.info(query_id) + logger.info(result) + logger.info(expected) assert_calculate_query(result, expected)