Skip to content
New issue

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

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

Already on GitHub? # to your account

Refactor tests, add table arities #54

Merged
merged 3 commits into from
Jul 2, 2015
Merged

Refactor tests, add table arities #54

merged 3 commits into from
Jul 2, 2015

Conversation

danielcompton
Copy link
Collaborator

This change makes it easier to isolate failing tests and to create new tests.

  • Split the one large deftest into many smaller deftests
  • Add fixtures to recreate pokedex table between every test
  • Remove run and db-run command from core-test ns
  • Remove global conn, each test now creates its own connection

Add arity for table and db operations without DB, the new arities will use the implicit DB from the connection.

  • Add documentation for database priority to ns docstring
  • Update docstrings on functions to reference priority docs in ns docstring

Arities modified on

  • table-drop
  • table-list

table-create was left as I wasn't yet sure how to handle the optargs with two arities.

@danielcompton danielcompton changed the title Refactor tests, add table arities Refactor tests into multiple deftests Refactor tests, add table arities Jul 2, 2015
@danielcompton danielcompton self-assigned this Jul 2, 2015
@danielcompton danielcompton force-pushed the refactor-tests branch 2 times, most recently from a75dfdf to c7e546a Compare July 2, 2015 03:33
The new arities will use the implicit DB from the connection.
- Add documentation for database priority to ns docstring
- Update docstrings on functions to reference priority docs in ns
docstring

Arities modified on
- table-drop
- table-list

table-create was left as I wasn't yet sure how to handle the optargs with
two arities.
This change makes it easier to isolate failing tests and to create new
tests.
- Split the one large deftest into many smaller deftests
- Add fixtures to recreate pokedex table between every test
- Remove `run` and `db-run` command from core-test ns
- Remove global `conn`, each test now creates its own connection
Table-list already had tests using it.
danielcompton added a commit that referenced this pull request Jul 2, 2015
Refactor tests, add table arities
@danielcompton danielcompton merged commit 5f3843e into master Jul 2, 2015
@danielcompton danielcompton deleted the refactor-tests branch July 2, 2015 03:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant