Skip to content

Commit

Permalink
Update WIP comments
Browse files Browse the repository at this point in the history
also isort & black

Change-Id: I7513d2903fbaf039e585f52c2de0e7c9e3dad011
  • Loading branch information
jmolinski committed Mar 22, 2021
1 parent db0a01f commit 88f05ff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion oioioi/base/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def execute(
returned a non-zero return code.
:param errors_to_ignore: tuple of return codes not to be interpreted as
errors
:param stdin: a string (bytes in python3, str in python2) passed to the subprocess
:param stdin: a bytestring passed to the subprocess
:param cwd: working directory to temporarily chdir to
:param capture_output: if False, output will be passed to stdout/stderr
Expand Down
4 changes: 1 addition & 3 deletions oioioi/contests/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2851,9 +2851,7 @@ def setUp(self):

def test_submission_view_without_contest(self):
submission = Submission.objects.get(id=1)
response = self.client.get(
reverse('submission', kwargs={'submission_id': 1})
)
response = self.client.get(reverse('submission', kwargs={'submission_id': 1}))
self.assertEqual(response.status_code, 200)

# Submit another button
Expand Down
6 changes: 3 additions & 3 deletions oioioi/disqualification/admin.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from django.db import models
from django.forms import Textarea
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.db import models
from django.forms import Textarea
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _

from oioioi.base import admin
from oioioi.base.utils import make_html_link
from oioioi.contests.admin import contest_site, ContestAdmin
from oioioi.contests.admin import ContestAdmin, contest_site
from oioioi.contests.menu import contest_admin_menu_registry
from oioioi.contests.models import Submission
from oioioi.contests.utils import is_contest_admin
Expand Down
2 changes: 0 additions & 2 deletions oioioi/evalmgr/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,11 @@ def test_multiple_source_file_evaluation_with_dummy_sioworkers(self):
self._run_with_dummy_sioworkers(self.test_multiple_source_file_evaluation)

def test_full_source_file_evaluation(self):
# Problem is in sio.executors.checkers _run_diff doesn't return byte-string.
env = self.evaluation_env.copy()
env = delay_environ_wrapper(env).get()
self.assertEqual('OK', env['result_code'])

def test_multiple_source_file_evaluation(self):
# Problem is same as above.
good_env = self.evaluation_env.copy()
wrong_env = self.evaluation_env.copy()
wrong_env.update(
Expand Down

0 comments on commit 88f05ff

Please sign in to comment.