Conversation
| :alt: License: AGPL-3 | ||
|
|
||
| Website logo | ||
| Website Logo |
There was a problem hiding this comment.
Follow lates README template: https://raw.githubusercontent.com/OCA/maintainer-tools/master/template/module/README.rst
|
Ouch @coveralls - I'll add tests 😉 |
ba1fa2a to
e8a654b
Compare
|
I have no idea how to get these tests to pass. I have tried everything from a standard It looks like OpenERP decided to not test this section of their code either; maybe the same problems? Regardless, I have rebased away from my tests if we want to merge as is. I'm open to pointers as well, if a better Odoo-er than me wants to take a look - https://github.com/laslabs/website/blob/feature/9.0/website_logo_test/website_logo/tests/test_logo.py |
|
Controllers are usually tested with PhantomJS tests, but you can import and call directly the method as an alternative method, but you will have to deal with the answer as an object. |
|
Interesting, I thought I was using Phantom helpers in the HttpCase with the |
|
Alright woot got it! I wrote them in Phantom at first, but wasn't getting the coverage I was looking for; so I reverted to the good ol' mock pattern. It seems the Phantom tests are designed pretty heavily around the tours, which somewhat conflicted with the scope of this module. This is ready IMO |
| @@ -0,0 +1,70 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # © 2015-TODAY LasLabs Inc. | |||
There was a problem hiding this comment.
Please put only 2016, because TODAY is relative 😉
|
👍 |
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues | ||
| <https://github.com/OCA/{project_repo}/issues>`_. In case of trouble, please |
|
@lasley looking at the diff from 8.0 version Please add them, thanks |
|
Wow I really need to do better at following up on my PRs. @eLBati & @pedrobaeza - Sorry if this should be more clear, but is there a way for me to extract pieces of a commit in order to be included in this PR? The only way I can think of to bring commits such as c3bd993 in is by literally copying the diff and creating a new commit. I feel like there should be a more elegant way here, like some sort of partial cherry pick, but I am totally at a loss. |
|
This is what I do on 9.0 branch (you can use the migration guide I made for 9.0 as inspiration: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0): Now I have the module isolated in one branch. I see the log ( |
|
This is amazing, thank you @pedrobaeza - this is really going to help me move all my vertical medical PRs up too (we're about 200 commits ahead of the PRs at this point, and I was honestly dreading that rebase nightmare). I will play around, and update this PR with the results. Thanks again, as always 😄 |
de542ab to
251d206
Compare
|
Migrations removed |
|
Rebuilding for testing |
| To configure this module, you need to: | ||
|
|
||
| * go to your company and load a logo image in the website logo field | ||
| * Go to 'Settings' > 'Configuration' > 'Website Settings' |
There was a problem hiding this comment.
This instructions are not valid in v9. Please change where you can change logo.
|
Hi @lasley , I don't see any please to change logo: |
|
Hi @rafaelbn - Thanks for the review. ReadMe instructions updated to correspond, although I am thinking these might have been invalid for v8 too. For easy reference:
|
bc979ce to
f148c99
Compare
|
Hmmm so after comparing deeper between current v8 and this branch, I think maybe the rebase swapped some things. I am going to tag this with a WIP, and will be able to take a look sometime this week. |
|
Is this completed? |
|
TBH I can't remember. It seems to work in my local, |
|
It seems that it's working properly now, so no clue. |
608f956 to
269df5e
Compare
* Upgrade website_logo to version 9 * Add tests
269df5e to
c1c9d53
Compare
|
Hello @lasley |
|
Superseded by #245 |

Tested & implemented suggestion from #190 + code upgraded to new OCA guidelines.