izzy lyseggen
9f5631cd90
feat(objects): mesh transform helper
2021-12-13 12:37:53 +00:00
izzy lyseggen
b6493df77f
test(transform): serialisation and vector transform tests
2021-12-13 11:48:05 +00:00
izzy lyseggen
49eabdd712
test(objects): transform create w malformed input
2021-12-10 18:34:40 +00:00
izzy lyseggen
96a31f0678
test(objects): transform methods
2021-12-10 18:29:35 +00:00
izzy lyseggen
82c9d874c9
test(branches): server now returns main first
2021-11-17 16:11:22 +00:00
izzy lyseggen
9acf2c8a92
fix(wrapper): fix for nested branches
2021-11-17 15:59:51 +00:00
Gergő Jedlicska
a89b12a02c
remove receive server test
2021-10-27 19:16:08 +02:00
Gergő Jedlicska
15ae68f5d7
commit received implementation
2021-10-27 14:13:49 +02:00
izzy lyseggen
b54e09f811
test: server transport & wrapper token auth
2021-10-21 12:20:09 +01:00
izzy lyseggen
8376329cbb
fix(base): type check error with optional generics
...
reported by rob on the forum:
https://speckle.community/t/issue-with-type-checking-in-pyhton/1861
2021-10-14 15:41:30 +01:00
izzy lyseggen
9297a5df49
feat(metrics): disable in tests
2021-10-11 18:10:53 +01:00
AntoineDao
5c93e4f9dc
test(geometry): rewrite tests so they can fail
...
I noticed that the Curv2D setter had a bug which wasn't caught by tests so I rewrote them to fail first
2021-09-19 10:08:28 +00:00
AntoineDao
e20b9b73c9
fix(brep): update vertices and trim values serialization
...
It turns out that those are not serialized like the other list attributes... Which is not super helpful or consistent but oh well :D
2021-09-18 22:54:58 +00:00
AntoineDao
8fb03972d5
fix(serialization): fix some bugs I introduced by not testing before committing...
2021-09-18 11:29:00 +00:00
AntoineDao
02702190c9
fix(object): move array encoding from datachunk to its own class
2021-09-15 23:30:59 +01:00
AntoineDao
d0f8f95e4e
feat(brep): use list serializers
2021-09-12 17:43:12 +00:00
AntoineDao
a6b19025e6
feat(base): add data chunk encoding/decoding methods
...
These are helpful to iterate over chunked lists of encoded geometry objects and decode them into base objects (and vice versa)
2021-09-12 17:38:56 +00:00
AntoineDao
2be82f0874
feat(geometry): add list encoding serialization
...
Most geometry objects can be encoded and decoded from list of floats that look like protobuffs in C#. This commit simply reproduces those methods
2021-09-12 17:36:40 +00:00
izzy lyseggen
7dd5b7a2a1
test(base): type checks
2021-08-24 12:11:46 +01:00
izzy lyseggen
08986056a3
test(obj): quick fix
2021-08-20 13:29:21 +01:00
izzy lyseggen
f89b07eacb
feat( 🥣 ): custom base types and test fixes
2021-08-20 13:09:09 +01:00
izzy lyseggen
4e23a69b89
fix(base): chunk fixes
2021-08-19 17:44:50 +01:00
izzy lyseggen
1970890ecc
test: stream wrapper tests
2021-08-06 16:38:40 +01:00
izzy lyseggen
6c7dc1eed9
tests: upload objects to each test stream
2021-04-22 09:54:23 +01:00
Alan Rynne
d07bab61e7
ci: Fixes with Izzy
2021-04-21 10:05:18 +02:00
Alan Rynne
3f7290ed12
ci: Reverting
2021-04-20 20:17:01 +02:00
Alan Rynne
ed92678a31
ci: Random test with "http"
2021-04-20 20:08:14 +02:00
Alan Rynne
4e26ebfbe2
ci: First coin-flip on Spinning up a Docker server for each test
2021-04-20 19:47:44 +02:00
izzy lyseggen
434ada8bc1
feat: rename speckle to specklepy
2021-04-09 12:25:32 +01:00
izzy lyseggen
501f9b8648
test: update host to use latest.speckle.dev
2021-03-22 15:03:22 +00:00
izzy lyseggen
883ec6e6ae
feat(operations): better (de)serialize functions
...
allow providing transports to the serialize / deserialize functions
to see detaching and chunking
2021-03-19 15:18:06 +00:00
izzy lyseggen
614eefc393
fix(serialisation): EMBARASSING BUG
...
so i'm a bit of a dumbo here.
i didn't realise that doing `.update()` on attr would update the parent
attr as well and extend to all objects every ahhhhhh
you have to do `self.thing = self.thing + blah blah` to just update
the instance attr. the more ya know!
#roastme @cristi8
2021-03-18 18:45:24 +00:00
izzy lyseggen
6e64770380
test(serializer): test detachment within lists
2021-03-17 17:38:05 +00:00
izzy lyseggen
5a66d912ae
test: update to use new geo objects
2021-02-26 16:56:49 +00:00
Gergő Jedlicska
6fe338628d
test(deserialization): undefined behavior of deserialization
...
Add failing test to uncover a possible bug in deserialization
2021-02-22 17:04:46 +01:00
Gergő Jedlicska
48883466fb
Merge branch 'main' of github.com:specklesystems/speckle-py into base_type_registration
2021-02-22 16:59:22 +01:00
izzy lyseggen
7703de0a37
test: unknown type deserialisation
2021-02-22 10:22:02 +00:00
Gergő Jedlicska
800b0018a0
style: ran formatter on codebase
2021-02-17 23:52:14 +01:00
Gergő Jedlicska
e6cf22e97a
feat(base.py): provide easy subclass type registration for (de)serialization
...
Implement automatic type register mechanism that stores all speckle Base model subclasses in a type
register for deserialization reuse in transports. This enables the Base to be useful as a base kit
object.
fix #50
2021-02-17 23:51:07 +01:00
Gergő Jedlicska
4933ca4abf
feat(base object): enforce unique speckle_type value
...
It was possible to override the builint types with a duplicate speckle_type, either via a duplicate
class name of an explicit speckle_type definition. It is now checked before registering the new type
in the subclass registry, and a meaningful error is thrown.
2021-02-13 14:46:54 +01:00
Gergő Jedlicska
00c1e378d5
feat(base model and deserialization): base model subclasses can now be automatically deserialized
...
Subclassing types of Base are stored in a class attribute that can be looked up via the
`speckle_type`.
fix #50
2021-02-13 10:19:12 +01:00
Gergő Jedlicska
7f2c26eb6b
refactor(test_base.py): refactor base object invalid prop tests
...
Utilizing a few pytest features to make invalid prop tests a bit sleeker
2021-02-11 22:04:20 +01:00
Gergő Jedlicska
5f35da3be9
style(black config): added explicit black config to pyproject.toml
2021-02-11 21:43:28 +01:00
izzy lyseggen
b6b25f824e
test(base): tests for prop validaton
2021-02-05 11:23:25 +00:00
izzy lyseggen
82f7ee6f0a
test(objects&serialisation): new base features
2021-01-26 10:04:00 +00:00
izzy lyseggen
6ab9252398
test(serialisation): both sqlite & server receive
2021-01-21 15:33:06 +00:00
izzy lyseggen
661c25c8fb
test: smol tidy
2021-01-21 15:24:02 +00:00
izzy lyseggen
94f47eeb17
test(user): user provile updates
2021-01-21 12:10:44 +00:00
izzy lyseggen
b6943bbe6f
test(server): api token create and revoke
2021-01-21 11:54:45 +00:00
izzy lyseggen
76da3cacfb
test(server): server get and apps
2021-01-21 11:32:46 +00:00