Skip to content
Snippets Groups Projects
Commit 12f6e729 authored by Ismail Moumni's avatar Ismail Moumni
Browse files

adding client-init

parent 6ddf4154
No related branches found
No related tags found
1 merge request!5Wip adding tests and json functions
import pytest
import sys
import os
from pckgclient import client as c
import rdos.softwares.server.server as s
sys.path.append(os.path.realpath('/../../rdos/softwares/server/'))
def test_send_message():
with pytest.raises(Exception):
assert c.send_message("192.168.1.1", 9393)
def test_send_mess_server():
s.server_conn("127.0.0.1", 9393)
a = c.server_conn("127.0.0.1", 9393)
assert c.send_message(a, "hey") == "Bonjour !!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment