Mock network backend

- also enable netowork tests
This commit is contained in:
Peter Šurda 2022-07-21 15:22:18 +08:00
parent f58fb505ea
commit 8bdbc66075
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
4 changed files with 11 additions and 3 deletions

View File

@ -3,13 +3,14 @@ FROM ubuntu:bionic AS kivy
ENV DEBIAN_FRONTEND=noninteractive
ENV SKIPCACHE=2022-07-20
ENV SKIPCACHE=2022-07-21
RUN apt-get update
RUN apt-get install -yq \
build-essential libcap-dev libssl-dev \
libmtdev-dev libpq-dev \
libxrender1 \
python3-dev python3-pip python3-virtualenv \
xvfb

View File

@ -1,13 +1,11 @@
# pylint: disable=too-few-public-methods
from .telenium_process import TeleniumTestProcess
from .common import skip_screen_checks
class NetworkStatusScreen(TeleniumTestProcess):
"""NetworkStatus Screen Functionality Testing"""
@skip_screen_checks
def test_network_status(self):
"""Show NetworkStatus"""
# This is for checking Current screen

View File

@ -3,6 +3,7 @@
from pybitmessage import state
from pybitmessage.bitmessagekivy.mpybit import NavigateApp
from class_addressGenerator import FakeAddressGenerator
import network
def main():

8
src/mock/network.py Normal file
View File

@ -0,0 +1,8 @@
class objectracker(object):
missingObjects = ()
class stats(object):
@staticmethod
def connectedHostsList():
return ()