The current code layout makes it hard to separate the tests per-platform (constants)

Bug #989119 reported by Diego Sarmentero
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
High
Mike McCracken

Bug Description

The current code layout makes it impossible/hard to separate the tests per-platform. The suggested solution is:

Refactor this module to have something like:

constants/
  __init__.py
  linux.py
  windows.py
  darwin.py

Refactor the Tests for this module in the same way.

Related branches

summary: - Refactor platform/constants
+ The current code layout makes it hard to separate the tests per-platform
+ (constants)
description: updated
Revision history for this message
Mike McCracken (mikemc) wrote :

Note that the branch I linked to this bug hasn't been tested because the tests are still too wound up with platform specific imports to run.

And there are no tests that test this trivial constants module.

My first branch, please let me know if I've done anything weird.

Leo Arias (elopio)
Changed in ubuntuone-client:
status: New → Triaged
tags: added: desktop+
Changed in ubuntuone-client:
status: Triaged → Fix Committed
dobey (dobey)
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.