@@ -135,7 +135,7 @@ def prepare_db(
135
135
# not existing case of recent properties with old requests
136
136
137
137
138
- def test_remove_old_records (session_obj : sa .orm .sessionmaker ):
138
+ def test_requests_cleaner (session_obj : sa .orm .sessionmaker ):
139
139
connection_string = session_obj .kw ["bind" ].url
140
140
141
141
# test remove nothing, older_than_days=365 by default
@@ -146,7 +146,7 @@ def test_remove_old_records(session_obj: sa.orm.sessionmaker):
146
146
)
147
147
result = runner .invoke (
148
148
entry_points .app ,
149
- ["remove-old- requests" , "--connection-string" , connection_string ],
149
+ ["requests-cleaner " , "--connection-string" , connection_string ],
150
150
)
151
151
assert result .exit_code == 0
152
152
with session_obj () as session :
@@ -161,7 +161,7 @@ def test_remove_old_records(session_obj: sa.orm.sessionmaker):
161
161
result = runner .invoke (
162
162
entry_points .app ,
163
163
[
164
- "remove-old- requests" ,
164
+ "requests-cleaner " ,
165
165
"--connection-string" ,
166
166
connection_string ,
167
167
"--older-than-days" ,
@@ -185,7 +185,7 @@ def test_remove_old_records(session_obj: sa.orm.sessionmaker):
185
185
)
186
186
result = runner .invoke (
187
187
entry_points .app ,
188
- ["remove-old- requests" , "--connection-string" , connection_string ],
188
+ ["requests-cleaner " , "--connection-string" , connection_string ],
189
189
)
190
190
assert result .exit_code == 0
191
191
with session_obj () as session :
0 commit comments