• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SatelliteQE / nailgun
91%
master: 97%

Build:
Build:
LAST BUILD BRANCH: sca-entity-field
DEFAULT BRANCH: master
Repo Added 15 May 2015 04:05PM UTC
Files 6
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH system-entity
branch: system-entity
CHANGE BRANCH
x
Reset
  • system-entity
  • 0.15.0
  • 0.15.1
  • 0.16.0
  • 0.17.0
  • 0.18.0
  • 0.18.1
  • 0.18.2
  • 0.20.0
  • 0.21.0
  • 0.22.0
  • 0.23.0
  • 0.24.0
  • 0.25.0
  • 0.26.0
  • 0.27.0
  • 0.28.0
  • 0.29.0
  • 0.30.0
  • 0.30.1
  • 0.30.2
  • 0.31.0
  • 0.32.0
  • 6.1.z
  • 6.2.beta
  • 6.2.z
  • 6.3.z
  • 6.4.z
  • 6.5.z
  • 6.6.z
  • 6.7.z
  • 6.8.z
  • issue-41
  • master
  • pondrejk-patch-1
  • revert-168-discovery
  • revert-498-ignorable_content-repo-entity
  • revert-509-resubmit-ignorable-content
  • revert-521-master
  • revert-525-master
  • revert-532-incremental_update
  • satellite-master
  • stable-satellite
  • ui-myaccount-3925
  • upstream_subscriptions

pending completion
373

push

travis-ci

elyezer
Fix a System OneToOneField

The `System` entity's `environment` field is incorrectly defined as referencing
an `Environment` entity. It should reference a `LifecycleEnvironment` entity.

Before fix:

    >>> from nailgun import entities
    >>> env = entities.Environment(id=1)
    >>> lce = entities.LifecycleEnvironment(id=1)
    >>> entities.System(environment=env).create_payload()
    {'environment_id': 1}
    >>> entities.System(environment=lce).create_payload()
    {'environment_id': nailgun.entities.LifecycleEnvironment(…)}

After fix:

    >>> from nailgun import entities
    >>> env = entities.Environment(id=1)
    >>> lce = entities.LifecycleEnvironment(id=1)
    >>> entities.System(environment=env).create_payload()
    {'environment_id': nailgun.entities.Environment(…)}
    >>> entities.System(environment=lce).create_payload()
    {'environment_id': 1}

1177 of 1287 relevant lines covered (91.45%)

1.83 hits per line

Relevant lines Covered
Build:
Build:
1287 RELEVANT LINES 1177 COVERED LINES
1.83 HITS PER LINE
Source Files on system-entity
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
373 system-entity Fix a System OneToOneField The `System` entity's `environment` field is incorrectly defined as referencing an `Environment` entity. It should reference a `LifecycleEnvironment` entity. Before fix: >>> from nailgun import entities >>> en... push 16 Jul 2015 07:41PM UTC elyezer travis-ci pending completion  
See All Builds (1547)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc