Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

FIXED #221 - Reenable wireless on limit adjustment#256

Merged
Rangak merged 7 commits into
EFForg:masterfrom
akiellor:reenable-wireless-on-limit-adjustment
Dec 3, 2014
Merged

FIXED #221 - Reenable wireless on limit adjustment#256
Rangak merged 7 commits into
EFForg:masterfrom
akiellor:reenable-wireless-on-limit-adjustment

Conversation

@akiellor
Copy link
Copy Markdown
Contributor

@akiellor akiellor commented Dec 1, 2014

  • Added FakeUci to make testing features which change config easier (works well with mock library)
  • Refactored routerapi/update_setting
  • is importable (for test)
  • defines and runs a main and executes on name condition.
  • Refactored routerapi/accumulate_bytes
    • is importable (for test)
    • defines and runs a main and executes on name condition.
      *extracted a script for running unit tests (if been using watch scripts/unit to continuously run)

@akiellor
Copy link
Copy Markdown
Contributor Author

akiellor commented Dec 1, 2014

FIXES #221

@Rangak
Copy link
Copy Markdown
Collaborator

Rangak commented Dec 1, 2014

Thanks, Andrew. Will review this afternoon and merge.

Ranga

On Nov 30, 2014, at 11:34 PM, Andrew Kiellor notifications@github.com wrote:

Added FakeUci to make testing features which change config easier (works well with mock library)
Refactored routerapi/update_setting
is importable (for test)
defines and runs a main and executes on name condition.
Refactored routerapi/accumulate_bytes
is importable (for test)
defines and runs a main and executes on name condition. *extracted a script for running unit tests (if been using watch scripts/unit to continuously run)
You can merge this Pull Request by running

git pull https://github.com/akiellor/OpenWireless reenable-wireless-on-limit-adjustment
Or view, comment on, or merge it at:

#256

Commit Summary

Extracted script to run just unit tests
Removed global params dictionary, introduced a main method, errors return a 500.
Extracted FakeUci to separate class.
Update network availablility upon bandwidth change.
Enable wireless router when current_use is below limit.
Should not restart wifi if disabled state does not change.
File Changes

M routerapi/accumulate_bytes (19)
A routerapi/accumulate_bytes.py (1)
M routerapi/update_setting (110)
M run-tests.sh (2)
A scripts/unit (5)
A test/accumulate_bytes_test.py (62)
A test/fake_uci.py (14)
A test/update_setting_test.py (21)
Patch Links:

https://github.com/EFForg/OpenWireless/pull/256.patch
https://github.com/EFForg/OpenWireless/pull/256.diff

Reply to this email directly or view it on GitHub.

Rangak added a commit that referenced this pull request Dec 3, 2014
…stment

FIXED #221 - Reenable wireless on limit adjustment
@Rangak Rangak merged commit 02841f7 into EFForg:master Dec 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants