Mads Marquart
856c1ffe0e
Remove ability to control the listening loop externally
...
It was probably scarcely used, and separate functionality will be
developed that makes this redundant anyhow.
2019-09-08 18:44:46 +02:00
Mads Marquart
b5a37e35c6
Remove FBchatUserError in favor of builtin exceptions
2019-09-08 18:44:46 +02:00
Mads Marquart
91cf4589a5
Remove ability to set a custom User-Agent
...
This causes issues if the User-Agent is set to resemble a mobile phone,
see #431 , and besides, it's not an API surface I want / need to support.
2019-09-08 18:44:46 +02:00
Mads Marquart
7c758501fc
Remove methods to set the default thread
...
This has been done to value explicitness over implicitness, and also
since the question of whether thread_id=None is acceptable was dependent
on mutable variables in Client.
2019-09-08 18:44:45 +02:00
Mads Marquart
da4ed73ec6
Remove models.py
2019-08-28 22:59:22 +02:00
Mads Marquart
66505f8f41
Remove redundant encoding specifiers and __future__ imports
2019-08-28 21:57:46 +02:00
Mads Marquart
6fb6e707ba
Remove six
dependency
2019-08-28 21:26:59 +02:00
Mads Marquart
e0710a2ec1
Format strings using black
2019-01-31 20:55:22 +01:00
Mads Marquart
d20fc3b9ce
Format using black
(without string normalization)
2019-01-31 20:54:32 +01:00
Mads Marquart
de5f3a9d9e
Merge branch 'pr/300'
2019-01-31 20:13:27 +01:00
Mads Marquart
3443a233f4
Fix pytest "Applying marks directly to parameters" deprecation
2018-12-09 15:02:48 +01:00
2FWAH
af3bd55535
Add basic test for fetchThreads
2018-09-21 19:43:39 +02:00
Mads Marquart
348db90f7b
Fixes for Python 2.7 compatibility
2018-08-29 23:50:35 +02:00
Mads Marquart
0d780b9b80
Added tests for plans
2018-08-29 21:31:28 +02:00
Mads Marquart
8ab718becd
Added poll tests
2018-08-29 16:49:33 +02:00
Mads Marquart
3be0d8389b
Changed changeThreadImageX
to changeGroupImageX
2018-08-29 14:37:29 +02:00
Mads Marquart
c2225bf2fd
Added more tests
2018-08-29 14:07:44 +02:00
Mads Marquart
0617d7b49f
Fixed _usersApproval
, fixed changeThreadImage
methods, more tests
2018-08-29 12:17:16 +02:00
Mads Marquart
42b288ee98
Fixed onAdminRemoved
and onAdminAdded
, and added tests for that
2018-08-29 11:15:59 +02:00
Mads Marquart
ead7203e40
Added tests for fetchMessageInfo
2018-08-29 11:03:46 +02:00
Mads Marquart
bd2b947255
More test improvements
2018-08-29 10:14:18 +02:00
Mads Marquart
f367bd2d0d
Improved test setup
2018-08-29 10:12:10 +02:00
Mads Marquart
ead696cbad
Attempted to improve TravisCI online tests
2018-06-24 12:20:17 +02:00
Mads Marquart
6116bc9ca4
addUsersToGroup
can no longer return the message id
...
Updated documentation and tests
2018-06-06 16:39:23 +02:00
Mads Marquart
a4dfe0d279
changeThreadColor
now works with MESSENGER_BLUE
again
2018-06-05 12:55:03 +02:00
Mads Marquart
62e17daf78
thread_fbid
is not available with typ
, there thread_id = author_id
...
Also enabled tests
2018-06-04 23:57:50 +02:00
Mads Marquart
151a114235
TravisCI integration and updated test suite ( #296 )
...
* Make TravisCI setup
* Use pytest, move tests to seperate files
* Added system to check if `onX` events were successfully executed
2018-06-04 13:44:04 +02:00
Mads Marquart
a76ebbb22a
Added python 2.7 support, reworked events
...
- Reworked events, so now they support python 2.7 (I had to remove some
functionality though, but that was a little unnecessary anyway)
- Events now support the old style of writing, for people who's more
comfortable with that: ```python
class EchoBot(fbchat.Client):
def onMessage(self, *args, **kwargs):
self.something(*args, **kwargs)
```
While still supporting the new method:
```python
class EchoBot(fbchat.Client):
def __init__(self, *args, **kwargs):
super(EchoBot, self).__init__(*args, **kwargs)
self.onMessage += lamda *args, **kwargs: self.something(*args,
**kwargs)
```
- Included `msg` as a parameter in every event function, since it's
useful if you want to extract some of the other data
- Moved test data to the folder `tests`
- Fixed various other functions, and improved stability
2017-05-22 20:33:00 +02:00