Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Add unit tests #4

Merged
merged 4 commits into from
Jul 28, 2013
Merged

Add unit tests #4

merged 4 commits into from
Jul 28, 2013

Conversation

scottyallen
Copy link

Based on the discussion at the 7/2/2013 meeting, it sounds like there will be a flurry of functionality changes to Baron to allow for things like different access policies at different times of day. I added some unit tests to help make sure we don't break any existing functionality as we hack new features, and so that new people to the codebase (such as me) can make changes without access to running it on the actual hardware.

I tried to make as few changes to the existing code as possible, though I had to change the structure of door_loop() a bit to make it testable.

This requires restructuring door_loop a bit, so that we can run finite iterations of it.  I tried to
modify as little as possible though.
@jof
Copy link
Member

jof commented Jul 4, 2013

Wow dude, this is awesome!

I'm also working on some modeling of the codesets and codes in another branch ("data_model"), so you may want to have a look there at at Issue #1 to see what's doing.
I could really use some feedback on some of the comments in #1, as well.

@scottyallen
Copy link
Author

Ping? Does this look ok to merge?

@jof
Copy link
Member

jof commented Jul 15, 2013

These additions are great.

I made some changes to master to support daemon-ization, which got your branch out-of-sync.
I rebased and fixed the conflicts and pushed to noisebridge/noisebridge-baron as branch "add_unit_tests".

Maybe force-push this into your repo, and let's get this merged.

:shipit:

@scottyallen
Copy link
Author

Sorry, got sidelined by some day job stuff. I merged master into my branch, and all the tests pass. Ok to merge?

@jof
Copy link
Member

jof commented Jul 28, 2013

That works. Let's ship it.

jof added a commit that referenced this pull request Jul 28, 2013
Add unit tests from scottyallen
@jof jof merged commit ba858e5 into noisebridge:master Jul 28, 2013
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