Dan Yeaw
ee7b980419
Fix tests should have the right numbers of partitions
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-11-28 22:30:35 -05:00
Dan Yeaw
a5fa1568ce
Update action-issue tests with new partitions
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-11-22 21:26:47 -05:00
Arjan Molenaar
4fd1085ee4
Format some more docs
2020-09-11 22:14:01 +02:00
Arjan Molenaar
f3e283775f
Comment does not require an owner
...
For now at least.
2020-09-11 22:08:23 +02:00
Arjan Molenaar
e84db9606a
Ensure derived unions only traverse properties owned by the object
2020-09-11 22:08:23 +02:00
Arjan Molenaar
3912416390
Add test to check if elements have at least one owner
2020-09-11 22:06:07 +02:00
Dan Yeaw
4776b53c40
Reformat docstrings
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-09-07 15:28:20 -04:00
Arjan Molenaar
c1671d6acf
Merge pull request #411 from gaphor/fix-issue-with-copied-associations
...
Fix issue where copy/paste + delete of original association causes association ends to be removed
2020-08-25 21:03:15 +02:00
Arjan Molenaar
400f876dee
Move association connector tests to a separate file
2020-08-21 22:37:16 +02:00
Arjan Molenaar
c185786a18
Add a test that exposes the association copy/paste issue
2020-08-19 23:41:13 +02:00
Arjan Molenaar
836284c409
Fix #408 where undo on diagram items breaks the model
...
diagram items end up in the ElementFactory, because they emited
ElementCreated and ElementDeleted events.
2020-08-18 17:00:09 +02:00
Arjan Molenaar
c3583d1652
Fix test names
2020-07-21 09:54:01 +02:00
Arjan Molenaar
e440e5315d
Fix tests to handle omni-presence of Style sheets
2020-07-13 22:23:17 +02:00
Arjan Molenaar
96c7a2a1c6
Move gaphorconvert to diagramexport package
2020-07-10 11:29:19 +02:00
Dan Yeaw
485c93bbc7
Remove unused imports
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-07-04 16:09:39 -04:00
Arjan Molenaar
15d0ed6965
Bump Gaphas dependency to 2.1
2020-06-22 08:21:40 +02:00
Sourcery AI
75fbd1bf46
Refactored by Sourcery
2020-06-02 13:53:01 +00:00
Arjan Molenaar
70b44e98de
Allow types in ElementFactory.[l]select()
2020-05-29 13:51:55 +02:00
Arjan Molenaar
5c6dea490b
Rename ModelProvider to ModelingLanguage
2020-04-16 20:40:54 +02:00
Arjan Molenaar
bdade85d69
Remove uml model provider as a service
...
It's now exclusively accesisble through the ModelProvider service.
2020-04-16 20:35:12 +02:00
Arjan Molenaar
6faa2cf7ff
ElementDispatcher and storage now use ModelProvider
...
No Generic model provider implementation yet, so all defaults to
implementations of the UMLModelProvider.
2020-04-16 20:32:35 +02:00
Dan Yeaw
3b66040c72
Fix test model locations
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-04-13 21:34:34 -04:00
Arjan Molenaar
5ea8cac035
Move gaphor.diagram.* items to UML package
...
Hotfix gaphor.core.modeling.elementdispatcher, since it has an explicit
dependency on the UML model. Should be moved out into a ModelProvider
service of some sort.
2020-04-12 23:11:31 +02:00
Dan Yeaw
1e182b244b
Move all test models to models package
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-04-12 12:40:46 -04:00
Dan Yeaw
c65a7bc9ba
Move gen_uml and build_uml to codegen module with CLI
...
Signed-off-by: Dan Yeaw <dan@yeaw.me>
2020-04-10 22:18:21 -04:00
Arjan Molenaar
f9a0ec6c3c
Move diagram module to core.modeling
2020-04-09 21:05:54 +02:00
Arjan Molenaar
6ad184a3fd
Move Element and friends to gaphor.core.modeling
2020-04-09 10:07:27 +02:00
Arjan Molenaar
f84d7b8e31
Move EventManager to gaphor.core
2020-04-08 21:48:49 +02:00
Arjan Molenaar
f4591d7de9
Move ElementFactory to gaphor.core.modeling
2020-04-08 21:23:45 +02:00
Arjan Molenaar
29a9e03ced
Merge pull request #263 from gaphor/unwind-uml-package
...
Unwind uml package
2020-02-06 19:30:16 +01:00
Arjan Molenaar
f2a177c957
Inline diagram code in uml2 module
...
This prevents cyclic imports.
2020-02-05 11:17:22 +01:00
Arjan Molenaar
2637281ec3
More use of session instead of application
2020-01-30 10:01:51 +01:00
Arjan Molenaar
7417ed1d72
Let old TestCase use sessions only
...
Convert test_undo to pytest and remove test_issue_132.
2020-01-30 10:01:51 +01:00
Arjan Molenaar
03c6097ddd
Replace application with session where possible
...
Just instantiate the session. Only use application when multiple
sessions are in play.
2020-01-30 10:01:51 +01:00
Arjan Molenaar
5f09020452
Move distribution function out of Application
...
And reuse it by tests as well.
2020-01-30 10:01:51 +01:00
Arjan Molenaar
c40abd7cbf
Use lifecycle events to shut down sessions
...
This looks nicer than explicit calls.
2020-01-25 20:08:32 +01:00
Arjan Molenaar
3ecbf5bc3f
Use session.get_service, instead of the old application one.
...
Nice bit of cleanup.
2020-01-22 23:12:30 +01:00
Arjan Molenaar
54e456451c
Create session with Application.new_session()
2020-01-22 21:41:55 +01:00
Dan Yeaw
05481db043
Sort imports
2019-11-09 20:27:01 -05:00
Arjan Molenaar
71bfa02f01
Make gaphor.UML more type checked
2019-11-04 22:27:15 +01:00
Arjan Molenaar
a49a4ce6ae
Fix multiplicity for redefine elements
...
multiplicity should match the parent property.
2019-11-04 22:27:15 +01:00
Arjan Molenaar
c64256fa6b
Fix multiplicity of Implementation properties
2019-11-04 22:27:15 +01:00
Arjan Molenaar
d9080428e7
Make UML module a bit more typed
...
This should help with editor support.
2019-11-04 22:27:15 +01:00
Arjan Molenaar
e4b1a57fe7
Change UML properties to use only a single generic type
2019-11-04 22:27:14 +01:00
Arjan Molenaar
082a136e83
Fix Black version
2019-10-30 08:00:07 +01:00
Arjan Molenaar
e54f1192ba
Remove unused imports throughout the code base
...
Thanks to autoflake.
2019-10-13 15:03:07 +02:00
Arjan Molenaar
c0b225e529
Ran autoflake on the code
...
Removed unused imports and unneeded pass statements.
2019-10-13 14:28:59 +02:00
Arjan Molenaar
97d7912b8d
Add some tests around gaphorconvert
2019-10-11 19:32:46 +02:00
Arjan Molenaar
6911d66169
importive typing in gaphor.UML
...
For mixins, silence some typing errors ;)
2019-08-27 21:49:09 +02:00
Arjan Molenaar
7c906a5825
Improve typing
2019-08-27 21:45:46 +02:00