Skip to content

Commit

Permalink
#208: remove HackerRank
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyk committed Dec 17, 2018
1 parent d92ca11 commit 5de9c9a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 231 deletions.
8 changes: 0 additions & 8 deletions docs/onlinejudge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ onlinejudge\.dispatch module
:undoc-members:
:show-inheritance:

onlinejudge\.hackerrank module
------------------------------

.. automodule:: onlinejudge.hackerrank
:members:
:undoc-members:
:show-inheritance:

onlinejudge\.problem module
---------------------------

Expand Down
208 changes: 0 additions & 208 deletions onlinejudge/hackerrank.py

This file was deleted.

8 changes: 5 additions & 3 deletions onlinejudge/implementation/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ def get_parser() -> argparse.ArgumentParser:
Aizu Online Judge
AtCoder
Codeforces
HackerRank
Yukicoder
CS Academy
(HackerRank has been removed)
supported services with --system:
Aizu Online Judge
Yukicoder
Expand Down Expand Up @@ -77,10 +78,11 @@ def get_parser() -> argparse.ArgumentParser:
supported services:
AtCoder
Codeforces
HackerRank
Yukicoder
TopCoder
(HackerRank has been removed)
strings for --method:
github for yukicoder, login via github (default)
twitter for yukicoder, login via twitter (not implementated yet)
Expand Down Expand Up @@ -158,9 +160,9 @@ def get_parser() -> argparse.ArgumentParser:
epilog='''\
supported services:
AtCoder
HackerRank
(Yukicoder has been removed)
(HackerRank has been removed)
example:
http://agc001.contest.atcoder.jp/tasks/agc001_a
Expand Down
12 changes: 0 additions & 12 deletions tests/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ class DownloadOthersTest(unittest.TestCase):
def snippet_call_download(self, *args, **kwargs):
snippet_call_download(self, *args, **kwargs)

def test_call_download_hackerrank_beautiful_array(self):
if 'CI' in os.environ:
print('NOTE: this test is skipped since login is required')
return
self.snippet_call_download(
'https://www.hackerrank.com/contests/hourrank-1/challenges/beautiful-array', {
'sample-1.in': 'fb3f7e56dac548ce73f9d8e485e5336b',
'sample-2.out': '897316929176464ebc9ad085f31e7284',
'sample-2.in': '6047a07c8defde4d696513d26e871b20',
'sample-1.out': '6d7fce9fee471194aa8b5b6e47267f03',
})

def test_call_download_anarchygolf_the_b_programming_language(self):
self.snippet_call_download(
'http://golf.shinh.org/p.rb?The+B+Programming+Language', {
Expand Down

0 comments on commit 5de9c9a

Please sign in to comment.