-
Notifications
You must be signed in to change notification settings - Fork 1
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
bottle reader unit test #183
base: develop
Are you sure you want to change the base?
Conversation
import json | ||
import os.path | ||
from typing import TypedDict | ||
import unittest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unittest
package isn't currently in the poetry environment for the SUAS2023 repo. Is it necessary for the test's functionality, or can the file run without the package?
|
||
"test file exists" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class needs a more descriptive docstring
|
||
"test file exists" | ||
|
||
def test_bottle_file(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function needs a numpy-style docstring
""" | ||
make sure bottle list has what it should in it | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be moved into the function docstring
make sure bottle list has what it should in it | ||
""" | ||
|
||
def test_bottle_read(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Numpy docstring for this function as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Make a test that verifies that the structure of the
bottle.json
file is correct - Change
test_bottle_read()
to verify thatload_bottle_info()
loads information about shapes, not just that it matches the json
contains the code for the bottle reader unit test