TE-Academy / Reputation-based_Weighted_Voting

MIT License
0 stars 0 forks source link

Write initial python tests in pytest #52

Closed andrew-octopus closed 1 month ago

andrew-octopus commented 2 months ago

Whatever feels right.

Test cases should be based on six NFTs: red_1, red_2, blue_1, blue_2, yellow_1, yellow_2.

General Testing Template

def test_whatever():
    expected_result = EXPECTED_RESULT #from 
    actual_result = ACTUAL_RESULT # from calling function

    results_agree = (expected_result == actual_result) # or whatever equality looks like
    results_do_not_agree_msg = "f{Expected {expected_result}, got {actual_result}."

    assert results_agree,results_do_not_agree_msg
linear[bot] commented 2 months ago

TE-69 Write initial python tests in pytest

AngelaKTE commented 1 month ago

Completed and closed