File: test_base.py

package info (click to toggle)
python-briefcase 0.3.25-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,596 kB
  • sloc: python: 62,519; makefile: 60
file content (21 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from briefcase.bootstraps.base import BaseGuiBootstrap


def test_base_bootstrap_fields():
    """Defined fields are implemented and implemented fields are defined."""
    for field in BaseGuiBootstrap.fields:
        assert field in BaseGuiBootstrap.__dict__

    for field in [
        attr
        for attr in BaseGuiBootstrap.__dict__
        if not attr.startswith("_")
        and attr
        not in {
            "fields",
            "display_name_annotation",
            "extra_context",
            "post_generate",
        }
    ]:
        assert field in BaseGuiBootstrap.fields