Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #698 and #699 #706

Merged
merged 13 commits into from
Nov 22, 2019
Merged

Fix #698 and #699 #706

merged 13 commits into from
Nov 22, 2019

Conversation

dimitri-yatsenko
Copy link
Member

@dimitri-yatsenko dimitri-yatsenko commented Nov 19, 2019

@dimitri-yatsenko dimitri-yatsenko changed the title Fix #698 Fix #698 and #699 Nov 19, 2019
@@ -36,6 +36,12 @@ def setup_class(cls):
cls.img = schema.Image()
cls.trash = schema.UberTrash()

def test_class_help(self):
help(schema.TTest)
Copy link
Contributor

Choose a reason for hiding this comment

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

would it make sense to also e.g.:
assert schema.TTest.definition in schema.TTest.__doc__

Copy link
Member Author

Choose a reason for hiding this comment

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

done. Also moved into test_declare

def test_class_help(self):
help(schema.TTest)

def test_instance_help(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

as before r.e. testing for definition in doc.

Copy link
Member Author

Choose a reason for hiding this comment

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

done. Also moved into test_declare

Copy link
Collaborator

@guzman-raphael guzman-raphael 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 update CHANGELOG.md and docs-parts/intro/Releases_lang1.rst based on these updates?

datajoint/table.py Show resolved Hide resolved
@guzman-raphael
Copy link
Collaborator

@dimitri-yatsenko Can you also update docs-parts/intro/Releases_lang1.rst to match CHANGELOG.md?

@@ -253,6 +253,9 @@ def pack_recarray(self, array):
def read_sparse_array(self):
raise DataJointError('datajoint-python does not yet support sparse arrays. Issue (#590)')

def read_scalar(selfs):

Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like a typo... Does not raise/return anything?

@guzman-raphael guzman-raphael merged commit 94c2eb8 into datajoint:master Nov 22, 2019
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.

Append table definition to docstring help does not work on tables
3 participants