Update README
This commit is contained in:
parent
5a938b40b4
commit
3fcb0d582f
13
README.md
13
README.md
@ -31,6 +31,19 @@ to ```libtoxcore.so``` if you have only ```libtoxcore.so```
|
|||||||
rather than ```autogen/configure```). If you want to be different,
|
rather than ```autogen/configure```). If you want to be different,
|
||||||
then just straighten out the filenames in ```libtox.py```.
|
then just straighten out the filenames in ```libtox.py```.
|
||||||
|
|
||||||
|
As is, the code in ```tox.py``` is very verbose. Edit the file to change
|
||||||
|
```
|
||||||
|
def LOG_ERROR(a): print('EROR> '+a)
|
||||||
|
def LOG_WARN(a): print('WARN> '+a)
|
||||||
|
def LOG_INFO(a): print('INFO> '+a)
|
||||||
|
def LOG_DEBUG(a): print('DBUG> '+a)
|
||||||
|
def LOG_TRACE(a): pass # print('TRAC> '+a)
|
||||||
|
```
|
||||||
|
to all ```pass #``` or use ```logging.logger``` to suite your tastes.
|
||||||
|
```logging.logger``` can be dangerous in callbacks in ```Qt``` applications,
|
||||||
|
so we use simple print statements as default. The same applies to
|
||||||
|
```wrapper/tests_wrapper.py```.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
No prerequisites in Python3.
|
No prerequisites in Python3.
|
||||||
|
@ -51,9 +51,12 @@ positional arguments:
|
|||||||
|
|
||||||
Look at the ```@unittest``` decorators in the code for tests that
|
Look at the ```@unittest``` decorators in the code for tests that
|
||||||
are known to fail, or are unfinished. They will be skipped, but should
|
are known to fail, or are unfinished. They will be skipped, but should
|
||||||
all be fixed and made to work. It has been tested with UDP and TCP proxy
|
all be eventually fixed and made to work. It has been tested with UDP and
|
||||||
(Tor). It has ***not*** been tested on Windows, and there may be some
|
TCP proxy (Tor), and with Tor **you may have transient errors** due to
|
||||||
breakage, which should be easy to fix.
|
connectivity - simply rerun with a sacrificed goat entrails on the keyboard.
|
||||||
|
|
||||||
|
It has ***not*** been tested on Windows, and there may be some minor breakage,
|
||||||
|
which should be easy to fix.
|
||||||
|
|
||||||
Currently:
|
Currently:
|
||||||
```
|
```
|
||||||
|
@ -878,12 +878,16 @@ class ToxSuite(unittest.TestCase):
|
|||||||
from toxygen_tests import test_sound_notification
|
from toxygen_tests import test_sound_notification
|
||||||
test_sound_notification(self)
|
test_sound_notification(self)
|
||||||
|
|
||||||
|
def test_loop_until_connected(self): # works
|
||||||
|
assert self.loop_until_connected()
|
||||||
|
|
||||||
def test_self_get_udp_port(self): # works
|
def test_self_get_udp_port(self): # works
|
||||||
"""
|
"""
|
||||||
t:self_get_udp_port
|
t:self_get_udp_port
|
||||||
"""
|
"""
|
||||||
if hasattr(oTOX_OPTIONS, 'udp_port') and oTOX_OPTIONS.udp_port:
|
if hasattr(oTOX_OPTIONS, 'udp_port') and oTOX_OPTIONS.udp_port:
|
||||||
o = self.alice.self_get_udp_port()
|
o = self.alice.self_get_udp_port()
|
||||||
|
LOG.info('self_get_udp_port ' +repr(o))
|
||||||
assert o > 0
|
assert o > 0
|
||||||
|
|
||||||
def test_self_get_tcp_port(self): # works
|
def test_self_get_tcp_port(self): # works
|
||||||
@ -895,10 +899,6 @@ class ToxSuite(unittest.TestCase):
|
|||||||
o = self.alice.self_get_tcp_port()
|
o = self.alice.self_get_tcp_port()
|
||||||
LOG.info('self_get_tcp_port ' +repr(o))
|
LOG.info('self_get_tcp_port ' +repr(o))
|
||||||
|
|
||||||
|
|
||||||
def test_loop_until_connected(self): # works
|
|
||||||
assert self.loop_until_connected()
|
|
||||||
|
|
||||||
def test_address(self): # works
|
def test_address(self): # works
|
||||||
"""
|
"""
|
||||||
t:self_get_address
|
t:self_get_address
|
||||||
|
Loading…
Reference in New Issue
Block a user