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

FAForever / server / 3063
96%

Build:
DEFAULT BRANCH: develop
Ran 06 Sep 2019 07:19PM UTC
Jobs 1
Files 45
Run time 4s
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

pending completion
3063

push

travis-ci

Askaholic
[WIP] Support for multiple player ratings (#486)

* Get rid of BasePlayer class

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Remove Player class mocking in tests

The Player class is essentially plain old data right now. Remove all
mocking of it to make it easier to modify. If we ever bless Player with
non-trivial behaviour, we can make a mock or an abstract class for it.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Improve game stats coverage

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Use a dict-like object for player ratings

Preparations for adding new rating types.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Add asynctest to dependencies

This will save us some manual mucking around with asyncio's sleep.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Replace CoroMock with asynctest's CoroutineMock

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Remove BaseGame class

Everything inherits from the Game class anyway, and all "abstract"
methods are already implemented there.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Fix ban test by formatting >100 year bans as 'forever'

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Make the DB non-global

This should make tests a bit more manageable.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Use asynctest/pytest-asyncio for tests

This replaces homegrown tools for coroutine testing with asynctest and
pytest-asyncio. One benefit is that each test gets its own fresh event
loop, another will come with proper tools for fast-forwarding event
loops.

Signed-off-by: Igor Kotrasinski <i.kotrasinsk@gmail.com>

* Add an event loop fast-forwarding decorator

This removes the need for ugly asyncio.sleep monkeypatching. It also
exposes some issues with tests not closing the server after the test
ends; we ignore it for now, ev... (continued)

2837 of 3020 relevant lines covered (93.94%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3063.1 06 Sep 2019 07:19PM UTC 0
93.94
Travis Job 3063.1
Source Files on build 3063
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3063
  • d5934e9c on github
  • Prev Build on develop (#3054)
  • Next Build on develop (#3072)
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