1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-29 00:22:28 -05:00
Commit Graph

15 Commits

Author SHA1 Message Date
d656f15e84 testing: Ensure account balance is correct after OFX import 2017-11-26 21:01:26 -05:00
aa8924243e Add initial OFX import test
So far, this only checks to ensure that the import doesn't return an
error code.
2017-11-26 14:42:05 -05:00
73cedfd700 testing: Allow DB engine and DSN to be selected with environment variables 2017-11-16 19:42:58 -05:00
5a6be5a07b Stop using form elements for API
Just send the JSON as the request body
2017-11-13 20:48:19 -05:00
507868b7a5 Begin move away from using http.ServeMux 2017-11-12 20:17:27 -05:00
82362f7ebc testing: Use an in-memory sqlite3 database
This makes testing *much* faster and removes the need for creating
temporary directories
2017-11-01 21:09:55 -04:00
4963e473aa testing: Add files and line numbers to logging output 2017-10-31 21:04:03 -04:00
3869f3a3b2 Get all current tests to pass with MySQL
This is done by requiring 'parseTime=true' in the MySQL DSN's (required
by github.com/go-sql-driver/mysql when Scan()ing to time.Time's), and
not forcing update counts to match if rows were updated to what they
already were.
2017-10-24 20:57:55 -04:00
85a58c3ff8 go vet, go fmt 2017-10-14 20:38:40 -04:00
3c5e726f93 testing: Error on teardown failures 2017-10-11 05:48:31 -04:00
4953063286 testing: Make handlers.Error obey the standard 'error' interface
And return these types from test helper functions
2017-10-09 21:11:50 -04:00
32ac18647b testing: Add GET, DELETE, PUT helper functions too 2017-10-09 06:00:51 -04:00
2decf765ac testing: Add common way to POST objects 2017-10-08 21:18:30 -04:00
bd52df65cd Create framework to automate creation/teardown of test data 2017-10-08 20:29:51 -04:00
8f0f64ae53 Add tests for users and sessions
Split out common test infrastructure from security_templates_test, make
tests HTTPS, use the http.Client provided by httptest
2017-10-07 06:21:05 -04:00