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 Jul 3, 2023
1 parent 98f51e5 commit 1f8b408
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion app/core/tests/models/test_predictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def mock_save_side_effect(name, content, **kwargs):
with patch(
"django.db.models.fields.files.FieldFile.save", mock_field_file_save
):

models.Prediction.load_evaluation_output(
challenge, evaluation, coordsfile_type, output_path
)
Expand Down
1 change: 0 additions & 1 deletion app/core/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def c(staff_user):


def test_challenge_admin(molfile_molw_config, c):

response = c.get(
f"/admin/core/challenge/{molfile_molw_config.challenge.id}/change/"
)
Expand Down
1 change: 0 additions & 1 deletion app/core/tests/test_filecache.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

@pytest.mark.parametrize(["remote_storage"], [[False], [True]])
def test_delete_local_copy(challenge, benzene_from_mol, settings, remote_storage):

filename = "Conformer3D_CID_241.mdl"
output_path = TEST_DATA_PATH / filename
file_value = models.FileValue.from_string(
Expand Down
2 changes: 0 additions & 2 deletions app/core/tests/views/test_submission_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def test_load_expired_submission(client, user, draft_submission):
@patch("django.utils.timezone.now", mocktime.inactive_after)
@pytest.mark.django_db
def test_update_expired_submission(client, user, draft_submission):

client.force_login(user)
response = client.get(f"/submission/{draft_submission.pk}/edit/")
assert response.status_code == 200
Expand Down Expand Up @@ -241,7 +240,6 @@ def test_update_expired_submission(client, user, draft_submission):

@pytest.mark.django_db(transaction=True)
def test_run_submission(client, container_engine):

# Because we have dask worker in a separate thread, we need to commit our transaction.
# But the transaction test case will wipe out data from django's ContentTypes
# So rerun our migrations to re-add our content types
Expand Down
1 change: 0 additions & 1 deletion app/core/views/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class IndexView(TemplateView):

template_name = "index.html"

def get_context_data(self, **kwargs):
Expand Down
2 changes: 0 additions & 2 deletions app/referee/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def submit_submission_run(client, submission_run):

@dask.delayed(pure=False)
def cache_containers(submission_run, delayed_conditional):

if not delayed_conditional:
return 1

Expand Down Expand Up @@ -107,7 +106,6 @@ def cache_containers(submission_run, delayed_conditional):


def _run(submission_run, delayed_conditional):

pull_code = cache_containers(submission_run, delayed_conditional)

if submission_run.submission.challenge.current_batch_group() is None:
Expand Down
1 change: 0 additions & 1 deletion app/referee/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def test_run_and_score_submission(container_engine):


def _run_and_check_evaluation(submission_run, evaluation):

temp_dir = pathlib.Path(tempfile.mkdtemp())
with patch("django.conf.settings.CONTAINER_FILES_ROOT", temp_dir):
pull_code = tasks.cache_containers(submission_run, True)
Expand Down

0 comments on commit 1f8b408

Please sign in to comment.