Arbeitsverzeichnis für Pendel-Redaktion. Beinhaltet Skripte sowie alle Pendel-Inhalte.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
438 B

import pytest
import main
@pytest.fixture(autouse=True)
def patch_log(monkeypatch):
monkeypatch.setattr(main, "log", lambda msg: None)
monkeypatch.setattr(main, "logvv", lambda msg: None)
def test_shifting_top():
assert main.shifting((2,3), (4,5)) == (2,4)
def test_shifting_mid():
assert main.shifting((20,24), (21,49)) == (20,23)
def test_shifting_botom():
assert main.shifting((20,26), (21,49)) == (20,27)