summaryrefslogtreecommitdiff
path: root/tests/test_typeclass.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove all Python 2 Python codeChristoph Reiter2020-04-151-2/+0
|
* tests: Make it possible to use pytest directlywip/creiter/pytest-directChristoph Reiter2018-02-121-4/+2
| | | | | | | | | | | pytest will just import the files passed to it and try to run tests. Since we need to run some setup code convert the tests directory to a Python package and do the initialization in __init__.py. This makes the init code (env vars, typelib search path, dbus) always run when something from the package gets imported. python3 setup.py build_tests # build pygobject and tests py.test-3 tests/test_gi.py # run tests in test_gi.py only
* Add GTypeClass methods as Python GObject class methodsJohan Dahlin2014-05-251-0/+13
| | | | | | | | | | Take all the methods from an objects type classs and add them as class methods. For instance, GObject.ObjectClass.list_properties is available as GObject.Object.list_properties(). Co-Authored-By: Simon Feltman <sfeltman@src.gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=685218
* Add marshalling coercion for Python classes and instances to GTypeClassSimon Feltman2014-05-251-0/+67
Automatically marshal Python GObject classes and instances to GTypeClass structs (GObjectClass). This allows usage of the GTypeClass methods by passing a Python GObject class or instance to the GTypeClass method. This is needed to support usage of GTypeClass methods since we don't manually bind GTypeClasses and they are not very well supported with introspection. https://bugzilla.gnome.org/show_bug.cgi?id=685218