Skip to content

Commit cfcb5a3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ad7dc3e commit cfcb5a3

7 files changed

Lines changed: 0 additions & 9 deletions

File tree

app/core/tests/models/test_predictions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def mock_save_side_effect(name, content, **kwargs):
123123
with patch(
124124
"django.db.models.fields.files.FieldFile.save", mock_field_file_save
125125
):
126-
127126
models.Prediction.load_evaluation_output(
128127
challenge, evaluation, coordsfile_type, output_path
129128
)

app/core/tests/test_admin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def c(staff_user):
2222

2323

2424
def test_challenge_admin(molfile_molw_config, c):
25-
2625
response = c.get(
2726
f"/admin/core/challenge/{molfile_molw_config.challenge.id}/change/"
2827
)

app/core/tests/test_filecache.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
@pytest.mark.parametrize(["remote_storage"], [[False], [True]])
1212
def test_delete_local_copy(challenge, benzene_from_mol, settings, remote_storage):
13-
1413
filename = "Conformer3D_CID_241.mdl"
1514
output_path = TEST_DATA_PATH / filename
1615
file_value = models.FileValue.from_string(

app/core/tests/views/test_submission_views.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def test_load_expired_submission(client, user, draft_submission):
167167
@patch("django.utils.timezone.now", mocktime.inactive_after)
168168
@pytest.mark.django_db
169169
def test_update_expired_submission(client, user, draft_submission):
170-
171170
client.force_login(user)
172171
response = client.get(f"/submission/{draft_submission.pk}/edit/")
173172
assert response.status_code == 200
@@ -241,7 +240,6 @@ def test_update_expired_submission(client, user, draft_submission):
241240

242241
@pytest.mark.django_db(transaction=True)
243242
def test_run_submission(client, container_engine):
244-
245243
# Because we have dask worker in a separate thread, we need to commit our transaction.
246244
# But the transaction test case will wipe out data from django's ContentTypes
247245
# So rerun our migrations to re-add our content types

app/core/views/root.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
class IndexView(TemplateView):
5-
65
template_name = "index.html"
76

87
def get_context_data(self, **kwargs):

app/referee/tasks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def submit_submission_run(client, submission_run):
6969

7070
@dask.delayed(pure=False)
7171
def cache_containers(submission_run, delayed_conditional):
72-
7372
if not delayed_conditional:
7473
return 1
7574

@@ -107,7 +106,6 @@ def cache_containers(submission_run, delayed_conditional):
107106

108107

109108
def _run(submission_run, delayed_conditional):
110-
111109
pull_code = cache_containers(submission_run, delayed_conditional)
112110

113111
if submission_run.submission.challenge.current_batch_group() is None:

app/referee/tests/test_tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def test_run_and_score_submission(container_engine):
5757

5858

5959
def _run_and_check_evaluation(submission_run, evaluation):
60-
6160
temp_dir = pathlib.Path(tempfile.mkdtemp())
6261
with patch("django.conf.settings.CONTAINER_FILES_ROOT", temp_dir):
6362
pull_code = tasks.cache_containers(submission_run, True)

0 commit comments

Comments
 (0)