Skip to content

Bump sqlalchemy from 1.4.49 to 2.0.21 #135

Bump sqlalchemy from 1.4.49 to 2.0.21

Bump sqlalchemy from 1.4.49 to 2.0.21 #135

GitHub Actions / Unit Tests for python 3.9 failed Sep 25, 2023 in 0s

2 fail, 2 skipped, 20 pass in 6s

24 tests   20 ✔️  6s ⏱️
  1 suites    2 💤
  1 files      2

Results for commit 34579cc.

Annotations

Check warning on line 0 in tests.test_crud.TestGetModels

See this annotation in the file changed.

@github-actions github-actions / Unit Tests for python 3.9

test_get_model_with_relationship (tests.test_crud.TestGetModels) failed

test-report.xml [took 0s]
Raw output
AssertionError: 'child_test_name_2' != 'child_test_name_1'
- child_test_name_2
?                 ^
+ child_test_name_1
?                 ^
self = <tests.test_crud.TestGetModels testMethod=test_get_model_with_relationship>

    def test_get_model_with_relationship(self):
        self.create_test_data()
        self.link_children_to_parents()
    
        model = get_model(
            db=self.db,
            model=Parent,
            model_id=1,
        )
        self.assertEqual(len(model.children), 2)
>       self.assertEqual(model.children[0].name, "child_test_name_1")
E       AssertionError: 'child_test_name_2' != 'child_test_name_1'
E       - child_test_name_2
E       ?                 ^
E       + child_test_name_1
E       ?                 ^

tests/test_crud.py:123: AssertionError

Check warning on line 0 in tests.test_crud.TestGetModels

See this annotation in the file changed.

@github-actions github-actions / Unit Tests for python 3.9

test_get_models_by_attribute (tests.test_crud.TestGetModels) failed

test-report.xml [took 0s]
Raw output
AssertionError: 'child_test_name_200' != 'child_test_name_199'
- child_test_name_200
?                 ^^^
+ child_test_name_199
?                 ^^^
self = <tests.test_crud.TestGetModels testMethod=test_get_models_by_attribute>

    def test_get_models_by_attribute(self):
        self.create_test_data()
        self.link_children_to_parents()
    
        models = get_models_by_attribute(
            db=self.db, model=Parent, attribute="id_modulo", attribute_value=0
        )
        self.assertEqual(len(models), 10)
        self.assertEqual(models[0].name, "parent_test_name_10")
        self.assertEqual(models[-1].name, "parent_test_name_100")
        self.assertEqual(models[0].children[0].name, "child_test_name_19")
>       self.assertEqual(models[-1].children[0].name, "child_test_name_199")
E       AssertionError: 'child_test_name_200' != 'child_test_name_199'
E       - child_test_name_200
E       ?                 ^^^
E       + child_test_name_199
E       ?                 ^^^

tests/test_crud.py:189: AssertionError