fix(ci): include scrapers, though
This commit is contained in:
parent
560c8b2846
commit
2704fe6d72
4 changed files with 190 additions and 0 deletions
41
tests/scrapers/conftest.py
Normal file
41
tests/scrapers/conftest.py
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_codeforces_html():
|
||||
return """
|
||||
<div class="input">
|
||||
<pre>
|
||||
<div class="test-example-line-1">3</div>
|
||||
<div class="test-example-line-1">1 2 3</div>
|
||||
</pre>
|
||||
</div>
|
||||
<div class="output">
|
||||
<pre>
|
||||
<div class="test-example-line-1">6</div>
|
||||
</pre>
|
||||
</div>
|
||||
"""
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_atcoder_html():
|
||||
return """
|
||||
<h3>Sample Input 1</h3>
|
||||
<pre>3
|
||||
1 2 3</pre>
|
||||
<h3>Sample Output 1</h3>
|
||||
<pre>6</pre>
|
||||
"""
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_cses_html():
|
||||
return """
|
||||
<h1>Example</h1>
|
||||
<p>Input:</p>
|
||||
<pre>3
|
||||
1 2 3</pre>
|
||||
<p>Output:</p>
|
||||
<pre>6</pre>
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue