Beispiel #1
0
def test_general_that_requires_citation_count():
    URL = "https://en.wikipedia.org/wiki/Cardiff_Marriott_Hotel"
    actual = get_citations_needed_count(URL)
    expect = 0
    assert actual == expect

    
Beispiel #2
0
def test_get_number_of_citation_needed():
    actual = 5
    expected = get_citations_needed_count(url)
    assert actual == expected
def test_citations_count():
    actual = get_citations_needed_count(
        'https://en.wikipedia.org/wiki/The_Grudge')
    expected = 3
    assert actual == expected
Beispiel #4
0
def test_1():
    URL = "https://en.wikipedia.org/wiki/History_of_Mexico"
    actual = 5
    expected = get_citations_needed_count(URL)
    assert actual == expected
Beispiel #5
0
def test_2():
    URL = "https://en.wikipedia.org/wiki/History_of_Jordan"
    actual = 3
    expected = get_citations_needed_count(URL)
    assert actual == expected
Beispiel #6
0
 def test_citations_count(self, url, _count):
     """Test if the function returns correct number of citations
     """
     assert get_citations_needed_count(url) == _count
Beispiel #7
0
def test_citation_count():
    assert get_citations_needed_count(
        "https://en.wikipedia.org/wiki/Mindset") == 3
Beispiel #8
0
def test_general_that_requires_citation_count():
    URL = "https://en.wikipedia.org/wiki/Awara_Zindagi"
    actual = get_citations_needed_count(URL)
    expect = 1
    assert actual == expect
Beispiel #9
0
def test_citation_count():
    actual = get_citations_needed_count(
        'https://en.wikipedia.org/wiki/2020_Nagorno-Karabakh_war')
    expected = 2
    assert actual == expected
def test_count():
    epected = 5
    actual = get_citations_needed_count(
        'https://en.wikipedia.org/wiki/History_of_Mexico')
    assert actual == epected
def test_count_1():
    epected = 1
    actual = get_citations_needed_count('https://en.wikipedia.org/wiki/Jordan')
    assert actual == epected
def test_count():
    assert get_citations_needed_count(
        'https://en.wikipedia.org/wiki/Automation') == 3
Beispiel #13
0
def test_count():
    url = "https://en.wikipedia.org/wiki/History_of_Mexico"
    assert get_citations_needed_count(url) == 5
Beispiel #14
0
def test_cite_count_as_five():
    URL = 'https://en.wikipedia.org/wiki/History_of_Mexico'
    expected = 5
    actual = get_citations_needed_count(URL)
    assert actual == expected
def test_get_citations_needed_count():
    actual = get_citations_needed_count('https://en.wikipedia.org/wiki/Stock_market')
    expected = 5
    assert actual == expected
Beispiel #16
0
 def test_citations_count(self, url, _count):
     assert get_citations_needed_count(url) == _count
Beispiel #17
0
def test_count():
    URL = 'https://en.wikipedia.org/wiki/Gun' 
    assert get_citations_needed_count(URL) == None