def live_stream(): stream = pylivestream.Livestream(inifn=Path(os.getcwd()), site='youtube') stream2 = pylivestream.FileIn(Path(os.getcwd()), websites='youtube') stream.filein() stream.key = 'tusm-dmxq-zp33-2mt2' stream.startlive()
def test_config_not_found(tmp_path): with pytest.raises(FileNotFoundError): pls.Livestream(tmp_path / "nothere.ini", "localhost")
def test_config_default(tmp_path): S = pls.Livestream(None, "localhost") assert "localhost" in S.site
def test_config_default(tmp_path): S = pls.Livestream(None, 'localhost') assert 'localhost' in S.site