Freebox thin client
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.

25 lines
586 B

#!/usr/bin/env python3
import os
import time
import sys
import requests
import pytest
from mock import patch, MagicMock
from pyfbx import Fbx
def test_fbx_hardcoded_url():
f = Fbx(url="")
f = Fbx(url="")
@pytest.mark.skipif('TEST_SKIP_LOCAL' in os.environ, reason="No freebox")
def test_fbx_mdns():
f = Fbx()
assert isinstance(f, Fbx)
with patch('', return_value=None):
f = Fbx()
f = Fbx(url="")
f = Fbx(nomdns=True)
f = Fbx(session=requests.Session())