def test_only_updates_given_table(
     self,
     session,
     article,
     user,
     connection,
     versioning_manager
 ):
     rename_table(connection, 'user', 'user2')
     activity = session.query(versioning_manager.activity_cls).filter_by(
         table_name='article'
     ).one()
     assert activity
 def test_only_updates_given_table(
     self,
     session,
     article,
     user,
     connection,
     versioning_manager
 ):
     rename_table(connection, 'user', 'user2')
     activity = session.query(versioning_manager.activity_cls).filter_by(
         table_name='article'
     ).one()
     assert activity
 def test_updates_table_name(self, session, user, connection):
     rename_table(connection, 'user', 'user2')
     activity = last_activity(connection)
     assert activity['table_name'] == 'user2'
 def test_updates_table_name(self, session, user, connection):
     rename_table(connection, 'user', 'user2')
     activity = last_activity(connection)
     assert activity['table_name'] == 'user2'