Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

101 unit test coverage sort.py#130

Merged
t8y8 merged 10 commits intotableau:developmenttableau/server-client-python:developmentfrom
talvalin:101-unit-test-coverage-sort.pytalvalin/server-client-python:101-unit-test-coverage-sort.pyCopy head branch name to clipboard
Jan 25, 2017
Merged

101 unit test coverage sort.py#130
t8y8 merged 10 commits intotableau:developmenttableau/server-client-python:developmentfrom
talvalin:101-unit-test-coverage-sort.pytalvalin/server-client-python:101-unit-test-coverage-sort.pyCopy head branch name to clipboard

Conversation

@talvalin
Copy link
Contributor

First attempt at tests for sort.py. I commented out my test for test_filter_combo, since it would intermittently fail because of the ordering of the two filters, so any advice on how to handle this particular issue (or to just bin the test) would be appreciated.

@talvalin
Copy link
Contributor Author

Two questions whilst I'm here:

  1. Should I have forked development instead of master?
  2. Are my settings for origin and upstream actually correct (https://gyazo.com/ce45182c1c65ec87fb9e5005f0e865f6)

@t8y8
Copy link
Collaborator

t8y8 commented Jan 16, 2017

Always always always fork development.

Pretend master doesn't exist :)

Copy link
Collaborator

@t8y8 t8y8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Can you publish the updated stats? I can't check as easily while on the road.


self.assertEqual(resp.request.query, 'pagenumber=13&pagesize=13&sort=name:asc')

# def test_filter_combo(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because of the determinism problem, right?

After @RussTheAerialist does his bit uncomment and rebase on top of his changes and this should be good to go.

@talvalin
Copy link
Contributor Author

talvalin commented Jan 22, 2017

Updated my PR as requested, but I have no idea how to publish the updated stats. Or indeed how to update the stats.

@talvalin
Copy link
Contributor Author

Okay, so not sure if we should be discussing here or in the deterministic order PR, but my test_filter_combo test passed for 2.7, 3.3, 3.4 and 3.5, but failed for 3.6. Any ideas?

@t8y8
Copy link
Collaborator

t8y8 commented Jan 23, 2017

Yes, the results aren't deterministic! You'll get results that vary from run to run in python 3, until his changes are checked in :)

@graysonarts
Copy link
Contributor

Okay I've merged #131 Sorry for the delay! You'll want to rebase and repush to pick up the squashed change

@talvalin
Copy link
Contributor Author

No problem. Sorry for being dim about the fact that tests were going to fail until the merge. All good now though now I hope.

@talvalin
Copy link
Contributor Author

Updated stats:

Name                                                          Stmts   Miss  Cover
---------------------------------------------------------------------------------
tableauserverclient\__init__.py                                   5      0   100%
tableauserverclient\datetime_helpers.py                          18      2    89%
tableauserverclient\models\__init__.py                           15      0   100%
tableauserverclient\models\connection_credentials.py             17      8    53%
tableauserverclient\models\connection_item.py                    38      0   100%
tableauserverclient\models\datasource_item.py                   105      5    95%
tableauserverclient\models\exceptions.py                          2      0   100%
tableauserverclient\models\fileupload_item.py                    17     10    41%
tableauserverclient\models\group_item.py                         39      0   100%
tableauserverclient\models\interval_item.py                     112      9    92%
tableauserverclient\models\pagination_item.py                    22      0   100%
tableauserverclient\models\project_item.py                       59      1    98%
tableauserverclient\models\property_decorators.py                78     14    82%
tableauserverclient\models\schedule_item.py                     146      5    97%
tableauserverclient\models\server_info_item.py                   21      0   100%
tableauserverclient\models\site_item.py                         147     14    90%
tableauserverclient\models\tableau_auth.py                       18      9    50%
tableauserverclient\models\tag_item.py                           13      0   100%
tableauserverclient\models\user_item.py                         112      4    96%
tableauserverclient\models\view_item.py                          56      6    89%
tableauserverclient\models\workbook_item.py                     147      8    95%
tableauserverclient\namespace.py                                  1      0   100%
tableauserverclient\server\__init__.py                            9      0   100%
tableauserverclient\server\endpoint\__init__.py                  12      0   100%
tableauserverclient\server\endpoint\auth_endpoint.py             34      3    91%
tableauserverclient\server\endpoint\datasources_endpoint.py     102     22    78%
tableauserverclient\server\endpoint\endpoint.py                  56     10    82%
tableauserverclient\server\endpoint\exceptions.py                20      0   100%
tableauserverclient\server\endpoint\fileuploads_endpoint.py      46     31    33%
tableauserverclient\server\endpoint\groups_endpoint.py           78      4    95%
tableauserverclient\server\endpoint\projects_endpoint.py         40      0   100%
tableauserverclient\server\endpoint\schedules_endpoint.py        46      8    83%
tableauserverclient\server\endpoint\server_info_endpoint.py      16      0   100%
tableauserverclient\server\endpoint\sites_endpoint.py            59      4    93%
tableauserverclient\server\endpoint\users_endpoint.py            60      1    98%
tableauserverclient\server\endpoint\views_endpoint.py            23      0   100%
tableauserverclient\server\endpoint\workbooks_endpoint.py       139     13    91%
tableauserverclient\server\exceptions.py                          2      0   100%
tableauserverclient\server\filter.py                             19      1    95%
tableauserverclient\server\pager.py                              25      2    92%
tableauserverclient\server\request_factory.py                   278     46    83%
tableauserverclient\server\request_options.py                    41      0   100%
tableauserverclient\server\server.py                             83      6    93%
tableauserverclient\server\sort.py                                6      0   100%
---------------------------------------------------------------------------------
TOTAL                                                          2382    246    90%

@t8y8
Copy link
Collaborator

t8y8 commented Jan 25, 2017

🚀

@t8y8 t8y8 merged commit 4700dda into tableau:development Jan 25, 2017
@talvalin talvalin deleted the 101-unit-test-coverage-sort.py branch February 16, 2017 03:14
graysonarts pushed a commit that referenced this pull request Mar 23, 2017
Brings sort.py coverage up to 100%

* Adding test_sort.py with initial tests
* Updated based on pycodestyle tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.