1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00
Commit Graph

195 Commits

Author SHA1 Message Date
Joel Bender
a84973df5e more tests 2017-09-15 01:05:31 -04:00
Joel Bender
0683bd1ecf simplify functions, make sure there are no trailing deferred functions 2017-09-15 01:04:52 -04:00
Joel Bender
c2aeadf53a make a specialized task for state timeouts for easier debugging 2017-09-15 01:03:20 -04:00
Joel Bender
7b8f9c5807 various 2017-09-14 22:16:57 -04:00
Joel Bender
4a282a8693 pass the application node name to the state machine 2017-09-14 22:16:35 -04:00
Joel Bender
d8320b4af3 bring branch up-to-date 2017-09-14 20:01:36 -04:00
Joel Bender
aeab4c8eed Merge branch '78-device-communication-control' of github.com:JoelBender/bacpypes into 78-device-communication-control 2017-09-14 19:58:20 -04:00
Joel Bender
e0cbec62ef let the DCC work begin... 2017-09-14 16:50:29 -04:00
Joel Bender
c68c5cd75b get ready for the DCC tests 2017-09-14 00:13:12 -04:00
Joel Bender
dd0a519021 shuffle some pieces around, add some more tests 2017-09-13 23:31:09 -04:00
Joel Bender
ef0f012ead the ApplicationNode sends everything up the stack to the state machine 2017-09-13 21:58:21 -04:00
Joel Bender
47a2ffe091 missing pieces 2017-09-13 13:13:38 -04:00
Joel Bender
022b1d0497 still bugs - application node confirmation not being called 2017-09-13 07:53:15 -04:00
Joel Bender
cebc2be6b0 placeholders for service tests 2017-09-12 22:12:30 -04:00
Joel Bender
ab70b4a267 simplify xtob 2017-09-12 22:06:22 -04:00
Joel Bender
3e1f813f71 standardize on cleaner state names 2017-09-12 03:03:23 -04:00
Joel Bender
4c1ecffba6 add a call() transition and tests, foreign device registration tests 2017-09-12 02:52:23 -04:00
Joel Bender
209d619994 state and time machine improvements and starting to add BVLL tests 2017-09-11 02:08:01 -04:00
Joel Bender
a050df73a6 offset assignment bug, working around floating point issues, added tests 2017-09-09 22:56:17 -04:00
Joel Bender
1749f2a0af merging #131 which ended up being lots of tests 2017-09-09 00:55:06 -04:00
Joel Bender
cd5a4653dd type checking improved, added tests 2017-09-08 15:00:38 -04:00
Joel Bender
a358aae5bb add 'events' as a way for multiple state machines in the same group to synchronize or signal each other 2017-09-04 01:22:20 -04:00
Joel Bender
776cf996de move the match_pdu function where it can be easily used in other tests, add a bunch of tests 2017-09-03 01:18:29 -04:00
Joel Bender
ebbf2f0e35 change receive from equality checking to 'criteria' which is an optional class, for isinstance() checking, and keyword name/value pairs, for hasattr() and getattr() checking 2017-09-02 02:06:54 -04:00
Joel Bender
4e052ada85 'indexing' a network, finding a node by address, might be a good idea to reintroduce in the future 2017-08-31 23:49:31 -04:00
Joel Bender
b67ccac080 minor doc update 2017-08-29 22:55:39 -04:00
Joel Bender
920793543d replace the start_state.success() with start_state.timeout().success() to make sure a node gets nothing 2017-08-17 12:56:41 -04:00
Joel Bender
2fa62dfe5f add an IPRouter and tests 2017-08-17 02:53:15 -04:00
Joel Bender
f1d4626527 add crude virtual IP network classes and tests 2017-08-16 23:24:07 -04:00
Joel Bender
75b3e1af6b remove the restriction on VLAN nodes to have address of type Address 2017-08-15 00:21:39 -04:00
Joel Bender
c58d255153 clean up the comments 2017-08-11 18:00:00 -04:00
Joel Bender
a2933abdad additional test and documentation 2017-08-08 00:32:29 -04:00
Joel Bender
572dfdf300 more experience writing networking/state machine tests 2017-08-07 23:25:52 -04:00
Joel Bender
b174095a47 remove send() and match_pdu() from TrappedStateMachine so it is a cleaner set of functionality, add a new TSMachine class in the test code so the tests can remain the same 2017-08-07 00:25:16 -04:00
Joel Bender
c91b3d6948 group the functions together 2017-08-07 00:21:33 -04:00
Joel Bender
ce0b176e70 trying out test code pattern 2017-08-03 14:54:53 -04:00
Joel Bender
fa96fcaf0b add doc strings because I keep forgetting the order 2017-08-03 14:53:48 -04:00
Joel Bender
f96dfa63f8 add a little debugging 2017-08-03 14:53:02 -04:00
Joel Bender
949108e2d5 add an __init__ method to see when it gets called, fix debugging 2017-07-19 00:56:26 -04:00
Joel Bender
be197b511a blank files for tests 2017-06-26 17:56:22 -04:00
Joel Bender
40a9a7892d add the capabillity module and tests 2016-08-27 18:49:56 -04:00
Joel Bender
3d18cf1f85 wrote some tests, found a bug 2016-08-24 10:45:35 -04:00
Joel Bender
aecb06c727 fix the names of the encode and decode functions 2016-08-23 16:17:04 -04:00
Joel Bender
168e32fc79 merge in stage to bring branch up-to-date for testing 2016-08-22 00:03:53 -04:00
Joel Bender
95e3de3a01 start some tests 2016-07-08 07:30:23 -04:00
Joel Bender
65aaf89a34 move the setup to the module, split the one big test into two 2016-05-11 17:29:30 -04:00
Joel Bender
869ab21b95 fix debugging output 2016-05-11 17:28:15 -04:00
Joel Bender
49f597bba8 add the template to the basic tests 2016-05-11 17:27:56 -04:00
Joel Bender
5e0e5db72b add the service access point test 2016-05-10 23:09:41 -04:00
Joel Bender
c123a2707b add some more trapped classes 2016-05-10 21:54:22 -04:00
Joel Bender
56481f6d2e wrong class name -- oops 2016-05-10 21:53:28 -04:00
Joel Bender
5e2eface5d additional trapped classes 2016-05-09 00:16:55 -04:00
Joel Bender
333d6cc66b end-at-eof muck 2016-05-09 00:16:06 -04:00
Joel Bender
c755781c1b start with the template 2016-05-09 00:15:33 -04:00
Joel Bender
568507355b trapped classes moved 2016-05-09 00:14:16 -04:00
Joel Bender
b85af12313 trapped classes module moved 2016-05-09 00:10:55 -04:00
Joel Bender
c2bfeb6073 move the trapped classes where they are a little more accessible 2016-05-07 23:17:35 -04:00
Joel Bender
67e338c4ce add some simple state machine group tests 2016-05-07 23:16:59 -04:00
Joel Bender
a7dce69e77 add flags for success/fail 2016-05-07 23:16:07 -04:00
Joel Bender
fe356bb8aa move the trapped classes where they are a little more accessible 2016-05-07 23:15:05 -04:00
Joel Bender
a5bb3166ed include the extended tag list tests 2016-05-07 20:27:49 -04:00
Joel Bender
7e111a4a61 include the extended tag list tests 2016-05-07 20:26:15 -04:00
Joel Bender
1465deb43e merge in stage and fix conflicts 2016-05-07 16:56:21 -04:00
Joel Bender
2eb860e08a remove flakes 2016-05-07 16:06:10 -04:00
Joel Bender
0d8f237754 convert tests from nose to pytest 2016-05-07 15:53:58 -04:00
Joel Bender
970c47ec8d wrong super() call, typos 2016-05-02 21:38:03 -04:00
Joel Bender
23893cf181 simplify the trapped classes, move bacpypes_debugging to decorator style 2016-05-02 21:33:58 -04:00
Joel Bender
917d138d5a import the trapped classes so bacpypes_debugging gets to work on the content 2016-05-02 21:32:58 -04:00
Joel Bender
73aea89ada upgrade the state machine classes 2016-05-02 21:19:08 -04:00
Joel Bender
e80c1ad05a bring the branch up to date before continuing on #58 2016-04-30 23:30:55 -04:00
Joel Bender
99cb079492 check the instance number and add a test for it 2016-04-29 20:23:59 -04:00
Joel Bender
539c0b47d3 remove flakes 2016-02-27 22:40:30 -05:00
Joel Bender
f016de324f add tests for the extended tag list 2016-02-27 22:39:18 -05:00
Joel Bender
b983e3e2af clean up debugging 2016-02-27 22:22:43 -05:00
Joel Bender
c96ff1e018 move the line parsing function outside the class to make it easier to test 2016-02-27 20:10:25 -05:00
Joel Bender
63fcea1626 extended tag list ready to be put to work 2016-02-27 19:52:20 -05:00
Joel Bender
fa71fea8fd import the tests in the directory to follow the pattern 2016-02-27 19:35:02 -05:00
Joel Bender
fad28f05b9 add some more placeholders for more tests 2016-02-27 19:23:51 -05:00
Joel Bender
6804298aa5 synchronize the py27 changes into py25 and py34, fix the test to match the new exception 2016-02-26 20:55:56 -05:00
Joel Bender
60cba9c949 adjust the tests to expect the InvalidTag exception 2015-09-25 22:27:14 -04:00
Joel Bender
41a66ad92d concluding merge of issue-48 changes 2015-09-06 00:54:28 -04:00
Joel Bender
0a40541576 manually merge in the appropriate differences between issue-38 and issue-48 2015-09-06 00:46:59 -04:00
Joel Bender
b5d2b56191 make the str() of a CharacterString more closely match an OctetString because the strValue is an octet string 2015-09-05 23:56:56 -04:00
Joel Bender
6d804c4df1 match tests with updated str() results 2015-09-05 23:40:30 -04:00
Joel Bender
2bdfcae2bf changing the str() function to more closely match the other primitive types 2015-09-05 22:39:09 -04:00
Joel Bender
725ea476b8 missed a conflict 2015-09-05 22:36:53 -04:00
Joel Bender
d0249dd799 bring issue up-to-date with the stage 2015-09-05 18:07:01 -04:00
Joel Bender
af7e2e34a4 date class rolled in 2015-09-05 18:02:17 -04:00
Joel Bender
2f14f1d87b remove tests that should have been removed before - odd - sigh 2015-09-01 11:20:38 -04:00
Joel Bender
3de6409f9e move test modules into subdirectories 2015-08-31 22:59:48 -04:00
Joel Bender
1881dcfdbc merge issue-48 branch for discussion 2015-08-31 22:35:49 -04:00
Christian Tremblay, ing
b483a3608b Removed files from branch... they should not be there
Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-31 22:10:27 -04:00
Christian Tremblay, ing
4a2770c5d6 Tried to add a lot of flexibility to the Date object.
Regex now recognize a lot of different formats
Deal with errors when trying to find day of week
test_date.py covers a lot of different formats but can be improved.

Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-31 22:06:44 -04:00
Joel Bender
dea0667930 line up the tests 2015-08-25 10:33:12 -04:00
Joel Bender
0e0bc2a530 enabled tests 2015-08-24 23:34:51 -04:00
Joel Bender
053a8fd418 test passes, good to go 2015-08-24 22:57:51 -04:00
Joel Bender
a0535f621a add some tests 2015-08-24 22:16:58 -04:00
Christian Tremblay, ing
5dc0349d39 Merge branch 'master' of https://github.com/JoelBender/bacpypes 2015-08-24 20:29:41 -04:00
Joel Bender
46f9b19fbf make it a little easier to create application encoded integer tags 2015-08-24 13:39:11 -04:00
Joel Bender
1dcbddeca8 additional tag and tag list tests 2015-08-23 22:43:31 -04:00