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

Testing #2

Closed
Dannnno opened this issue Oct 4, 2014 · 3 comments
Closed

Testing #2

Dannnno opened this issue Oct 4, 2014 · 3 comments
Assignees

Comments

@Dannnno
Copy link
Owner

Dannnno commented Oct 4, 2014

I need to work out how to implement unit tests of something that is a unit test. I suppose this should be possible, but it's going to take some thinking.

@Dannnno Dannnno self-assigned this Oct 4, 2014
@Dannnno Dannnno added the bug label Oct 5, 2014
@Dannnno
Copy link
Owner Author

Dannnno commented Oct 5, 2014

Started implementing tests. I'm encountering two errors, currently.

1: Imports fail when done inside of auto-grader.py Explicitly importing in example.py works fine

2: black_magic isn't finding the function names - it seems to be having a hard time locating the student. Needs debugging

Not an error with this, but I should look into using importlib so its a little cleaner

@Dannnno
Copy link
Owner Author

Dannnno commented Oct 7, 2014

I've solved the import issue, but I'm having a hard time fixing my_std_out so it works properly. Might try using StringIO or contextlib

@Dannnno
Copy link
Owner Author

Dannnno commented Oct 7, 2014

Resolved in commit e67f324

@Dannnno Dannnno closed this as completed Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant