Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 8, 2021
1 parent aa40537 commit 2f8ea23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/backends/aiida_sqlalchemy/test_session.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# ###########################################################################
# # Copyright (c), The AiiDA team. All rights reserved. #
# # This file is part of the AiiDA code. #
Expand All @@ -16,7 +16,6 @@
# from aiida.backends.utils import create_scoped_session_factory
# from aiida.manage.manager import get_manager


# class TestSessionSqla:
# """The following tests check that the session works as expected in some
# problematic examples. When a session is initialized with
Expand Down Expand Up @@ -187,13 +186,11 @@
# custom_session.commit()
# assert node.attributes == dbnode_reloaded.attributes


# def check_attrs_match(name, dbnode_original, dbnode_reloaded):
# original_attr = getattr(dbnode_original, name)
# reloaded_attr = getattr(dbnode_reloaded, name)
# assert original_attr == reloaded_attr, f"Values of '{name}' don't match ({original_attr} != {reloaded_attr})"


# def do_value_checks(session, dbnode_original, dbnode_reloaded, attr_name, original, changed):
# """Run the value check"""
# try:
Expand Down

0 comments on commit 2f8ea23

Please sign in to comment.