home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

20 rows where issue = 192752746 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: body, reactions, created_at (date), updated_at (date)

user 4

  • max-sixty 11
  • shoyer 5
  • fmaussion 3
  • spencerahill 1

author_association 2

  • MEMBER 19
  • CONTRIBUTOR 1

issue 1

  • Pytest assert functions · 20 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
268868297 https://github.com/pydata/xarray/pull/1147#issuecomment-268868297 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODg2ODI5Nw== max-sixty 5635139 2016-12-22T19:07:08Z 2016-12-22T19:07:08Z MEMBER

@shoyer green!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
268715495 https://github.com/pydata/xarray/pull/1147#issuecomment-268715495 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODcxNTQ5NQ== max-sixty 5635139 2016-12-22T04:23:49Z 2016-12-22T04:23:49Z MEMBER

@shoyer green!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
268662951 https://github.com/pydata/xarray/pull/1147#issuecomment-268662951 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODY2Mjk1MQ== spencerahill 6200806 2016-12-21T22:41:55Z 2016-12-21T22:41:55Z CONTRIBUTOR

This is great. At least in terms of the functionality I was looking for, I'd say this closes #754.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
268602871 https://github.com/pydata/xarray/pull/1147#issuecomment-268602871 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODYwMjg3MQ== fmaussion 10050469 2016-12-21T18:32:10Z 2016-12-21T18:32:10Z MEMBER

Thanks @MaximilianR , this will be useful for all libraries downstream of xarray

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
268587349 https://github.com/pydata/xarray/pull/1147#issuecomment-268587349 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODU4NzM0OQ== max-sixty 5635139 2016-12-21T17:35:16Z 2016-12-21T17:35:16Z MEMBER

@fmaussion had a go - is that what you were thinking?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
268480960 https://github.com/pydata/xarray/pull/1147#issuecomment-268480960 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODQ4MDk2MA== fmaussion 10050469 2016-12-21T09:51:03Z 2016-12-21T09:51:03Z MEMBER

This is great! Before merge it would be good to add the new standalone assert_* functions to the API doc?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
268435788 https://github.com/pydata/xarray/pull/1147#issuecomment-268435788 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODQzNTc4OA== max-sixty 5635139 2016-12-21T04:59:30Z 2016-12-21T04:59:30Z MEMBER

Rebased on https://github.com/pydata/xarray/pull/1175, so that should be merged first if people agree

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
268410195 https://github.com/pydata/xarray/pull/1147#issuecomment-268410195 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2ODQxMDE5NQ== max-sixty 5635139 2016-12-21T01:37:30Z 2016-12-21T01:38:31Z MEMBER

@shoyer I fixed most of the tests. Will come back and check the remaining few failures

I didn't quite realize how many .assertVariable... tests were relying on coercion, so I ended up changing the tests in a lot of places. The test is explicit at the test site, at least.

There were a couple that I think are probably breaks - things like .argsort changing the type of a Variable. I marked those with comments but haven't fixed them - or we'll never get this in! Let me know if you have thoughts on any notes

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267456077 https://github.com/pydata/xarray/pull/1147#issuecomment-267456077 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzQ1NjA3Nw== max-sixty 5635139 2016-12-15T21:56:50Z 2016-12-15T21:56:50Z MEMBER

There are more than a dozen: https://travis-ci.org/pydata/xarray/jobs/184356287#L2611

Also some binary / unicode errors - let me know if you have context

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267440249 https://github.com/pydata/xarray/pull/1147#issuecomment-267440249 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzQ0MDI0OQ== shoyer 1217238 2016-12-15T20:50:17Z 2016-12-15T20:50:17Z MEMBER

In most cases I would guess these are broken tests?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267439370 https://github.com/pydata/xarray/pull/1147#issuecomment-267439370 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzQzOTM3MA== max-sixty 5635139 2016-12-15T20:46:23Z 2016-12-15T20:46:23Z MEMBER

@shoyer do you have ideas for when the types are not the same? For example, many of the tests compare Variable to IndexVariable. Should we not check types? Add a check_type=True argument to the testing functions? Change the tests so they're compliant?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267293118 https://github.com/pydata/xarray/pull/1147#issuecomment-267293118 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzI5MzExOA== fmaussion 10050469 2016-12-15T10:24:31Z 2016-12-15T10:24:31Z MEMBER

I know there has been interest in public test functions for quite some time.

Yes, see also https://github.com/pydata/xarray/issues/754

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267237757 https://github.com/pydata/xarray/pull/1147#issuecomment-267237757 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzIzNzc1Nw== shoyer 1217238 2016-12-15T04:45:17Z 2016-12-15T04:45:17Z MEMBER

You might also add these to the API docs page and what's new. I know there has been interest in public test functions for quite some time.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267236307 https://github.com/pydata/xarray/pull/1147#issuecomment-267236307 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzIzNjMwNw== shoyer 1217238 2016-12-15T04:30:50Z 2016-12-15T04:30:50Z MEMBER

No no no... Just the definitions of the methods like assertDatasetEqual on the bass xarray TestCase class, which you can now define as aliases to your new functions. On Wed, Dec 14, 2016 at 8:17 PM Maximilian Roos notifications@github.com wrote:

The last thing I would do is switch the existing test methods like assertDatasetEqual to use these functions, just to reduce the amount of redundant code (and also test your new functions more extensively).

All of tests? I think that's a fairly heavy lift for this PR. It also happens to be really tedious and unfortunately I don't think Find / Replace-able... If you feel strongly I'll plug in and go through though!

Otherwise we can roll out over time as people write new tests

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/pull/1147#issuecomment-267234900, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1hhpkMSPNJZ4mPZ-ncrUwRBuYVfeks5rIL9ogaJpZM4LA_ql .

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267234900 https://github.com/pydata/xarray/pull/1147#issuecomment-267234900 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzIzNDkwMA== max-sixty 5635139 2016-12-15T04:17:44Z 2016-12-15T04:17:44Z MEMBER

The last thing I would do is switch the existing test methods like assertDatasetEqual to use these functions, just to reduce the amount of redundant code (and also test your new functions more extensively).

All of tests? I think that's a fairly heavy lift for this PR. It also happens to be really tedious and unfortunately I don't think Find / Replace-able... If you feel strongly I'll plug in and go through though!

Otherwise we can roll out over time as people write new tests

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
267216755 https://github.com/pydata/xarray/pull/1147#issuecomment-267216755 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NzIxNjc1NQ== shoyer 1217238 2016-12-15T02:10:53Z 2016-12-15T02:10:53Z MEMBER

This looks good to me. The last thing I would do is switch the existing test methods like assertDatasetEqual to use these functions, just to reduce the amount of redundant code (and also test your new functions more extensively).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
266570819 https://github.com/pydata/xarray/pull/1147#issuecomment-266570819 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NjU3MDgxOQ== max-sixty 5635139 2016-12-12T22:17:28Z 2016-12-12T22:17:28Z MEMBER

@shoyer green

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
265805479 https://github.com/pydata/xarray/pull/1147#issuecomment-265805479 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NTgwNTQ3OQ== max-sixty 5635139 2016-12-08T17:46:37Z 2016-12-09T02:05:16Z MEMBER

Thanks for the feedback! Updated.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
264573054 https://github.com/pydata/xarray/pull/1147#issuecomment-264573054 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NDU3MzA1NA== max-sixty 5635139 2016-12-02T21:55:47Z 2016-12-02T21:55:47Z MEMBER

Updated.

Is it worth 'testing the tests'? I couldn't find tests for the existing functions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746
264369143 https://github.com/pydata/xarray/pull/1147#issuecomment-264369143 https://api.github.com/repos/pydata/xarray/issues/1147 MDEyOklzc3VlQ29tbWVudDI2NDM2OTE0Mw== shoyer 1217238 2016-12-02T04:11:06Z 2016-12-02T04:11:06Z MEMBER

Do we want separate functions for each class?

That seems like overkill -- I think one is fine.

There's a comment or just switch to py.test and add an appropriate hook. - is that different to what's here?

I was thinking of something like how python lets you override the message for assert a == b. But it actually looks like there is no suitable hook for custom explanations when using methods. __traceback__ = False, like you do here, is about the best you can do.

Do we want more description for the failure, above just printing the arguments? That can also be added later

It's nice to at least print the objects on separate lines, e.g., using something like '%r\n%r' % (a, b) for the assert message. Otherwise multi-line reprs end up with the start of the second object on the same line as the first.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Pytest assert functions 192752746

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 15.758ms · About: xarray-datasette