This repository was archived by the owner on Mar 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Merge in tests from Comfortstat #58
Closed
Closed
Changes from 44 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
b3481c4
new branch test
SimonPergel a6f269d
new test file added
SimonPergel 1223c78
Corrected the calculating function
f5ded85
Fixed API calls to only do it one time with several instances?
a146df7
Small fix to make the instances sleep a bit
5f9f8e4
Merge branch 'master' into Comfortstat
7ca06c1
Added Alex fix to Jan's code
a95b553
Ran go mod tidy
cc8ff43
more tests added
SimonPergel d6e6a1f
added more tests for the getters in things.go
SimonPergel df3d27c
Merge branch 'master' into Comfortstat
8fb3b25
Fixed API to not be called in init_template
8800a7e
Installs dependencies for the tests too in the workflow
lmas 6bd7214
fixed the set-functions in thing.go and added more tests
SimonPergel 8b9f869
Added working tests for getters och setters functions
SimonPergel 260cba2
added some more tests
SimonPergel 2b73ffa
Merge remote-tracking branch 'origin/workflow' into Comfortstat
SimonPergel ffe9cc1
adding tests plus cleaning up things.go
SimonPergel 95fac3b
trying to test processfeedbackLoop
SimonPergel 1ea88dc
trying to test processfeedbackLoop
SimonPergel db73ae6
cleand up some things
SimonPergel d453a4a
working in GetapiPrice test
SimonPergel 39b6aa0
cleaned up some comments and added some comments to parts with no ex…
SimonPergel f5fef4b
More tests
SimonPergel 2224f3d
not there yet, but the push tests are woring fine
SimonPergel 41add31
not there yet, but the pushed tests are working fine
SimonPergel 1281db4
more tests
SimonPergel 2cf76b6
fixes testing bad body
lmas b2dbfe2
test for things.go is completed
SimonPergel 29b556d
added working test of the GET parts
SimonPergel 2521e46
cleaned up and added some comments to clarify diffrent parts
SimonPergel 161e287
added test for the PUT part in Comfortstat.go
SimonPergel 8b7971b
Updated newUnitAsset
SimonPergel 2434825
updated getapiprice function to match linter tests
SimonPergel 64b925d
added a part that validate the url in getApiPricedata
SimonPergel 79cab32
added error handling in getApiPricedata
SimonPergel de331da
added error handling in the pricefeedbackloop
SimonPergel 9b0086a
added error handling in pricefeedbackloop
SimonPergel 9a8d9af
cleaned up some log.prints in the set-functions
SimonPergel 01af2e1
moved the check for the statuscode to the right place, before reading…
SimonPergel e4dca4e
fixed so that i run the tests directly after the fuction call
SimonPergel 4e22141
changed the name to a more suitable name
SimonPergel 7ccffce
Reverts " changed the name to a more suitable name"
lmas 108b245
changed to a more suitable name
SimonPergel 9308c0a
replaced the sleep in things.go to Comfortstat.go
2e32040
Added user temperature to the comfortstat
4897efb
added some comments and removed emty lines
SimonPergel 27915d7
fixed the setter-methods
SimonPergel f4667fe
Added special case for the user temp
dfb65b5
Changed userTemp to UserTemp so it is exported as json
aed44a4
cleaned up some emty rows and created some explanatory comments
SimonPergel e68e039
Resolved all the comments in the review part
SimonPergel ed7d584
Removed one feedbackloop as it was unnecessary, fixed the hourly pric…
9b7a64b
added so the user can choose price region
SimonPergel 885c07a
cleand up the new switchRegion function and added some comments
SimonPergel b59a0fe
Added tests for the newly implemented features(Usertemp and REgion c…
SimonPergel 9cc8398
Cleand up the new funtions that have been implemented
SimonPergel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.