Commit Graph

25 Commits

Author SHA1 Message Date
KevinMidboe 9e145f7068 When testing we dont have api access so we create cache entries before each request. The cache key changed so this is now updated in the tests and tmdb. 2018-03-20 20:12:49 +01:00
KevinMidboe aafe524681 Merge pull request #90 from KevinMidboe/testing
Testing
2018-03-19 16:28:44 +01:00
KevinMidboe 40b7ceda5f The name of the teardown.sql file was renamed, reverted to correct name. 2018-03-19 16:23:58 +01:00
KevinMidboe 559ef1bc11 Before we create a db instance we check for testing flag is set and then use the :MEMORY: database for a anonymous db instance. 2018-03-19 15:25:53 +01:00
KevinMidboe 9645fba4ef Removed connect, connection is now a new sqlite instance, async run function, check for errors when executing and setup and teardown now return promises. 2018-03-19 15:24:42 +01:00
KevinMidboe 3a508b9843 Because we sort requests by date we want to use a finer measurement of time to sort more correctly. 2018-03-09 13:37:23 +01:00
KevinMidboe 354b833375 Removed console log of table data. 2018-03-06 21:24:18 +01:00
KevinMidboe 34a97c069b Updated from sqlite to sqlite3 now all functions are async so we wait for response. 2018-03-06 19:16:10 +01:00
KevinMidboe e6a8515432 Now we can check if user is admin. This has to be set manually and now only is used for fetching torrents. 2018-03-06 19:12:21 +01:00
KevinMidboe 272300249e Linted all database files. 2018-02-07 13:49:22 +01:00
KevinMidboe eedfe4cf3f Changed schema to reflect changes movie title from name to title. 2018-02-05 13:48:16 +01:00
KevinMidboe d92e6d8c78 Psst. Removed console logs from debug hunt. 2017-12-21 01:01:43 +01:00
KevinMidboe 2623649c5d Tried to re-add teardown and updated it to drop only tables that are in the database. Crossing fingers for a second pass. 2017-12-21 00:46:52 +01:00
KevinMidboe 0459fb9312 More testing for this bug. 2017-12-20 23:18:13 +01:00
KevinMidboe 6a725e3921 Added tons of console.logs to try find out where the problem with travis not being able to read file lies. 2017-12-20 23:06:02 +01:00
KevinMidboe fb22576708 Travis is still not reading our teardown file. 2017-12-20 22:51:08 +01:00
KevinMidboe bced4e052d There was a weird thing with the file permissions so it would not be read by travis. Now it should be fixed 2017-12-20 22:42:53 +01:00
KevinMidboe e19b604a78 Our teardown sql script. 2017-12-20 21:08:35 +01:00
KevinMidboe f6c27482e4 Added script for teardown of database. 2017-12-20 21:07:33 +01:00
KevinMidboe db11c968a3 Renamed folder the plural. 2017-12-01 10:28:29 +01:00
KevinMidboe b8647f982d This is where we use our setup function to add tables if none are present in our database file. 2017-12-01 10:27:46 +01:00
KevinMidboe ac6bbe6ac6 Now we can build or database by reading schema files. Also added doc strings to all the functions. This is a much better definition of a database script for our usecases.. 2017-12-01 10:19:22 +01:00
KevinMidboe 2b772e3017 Long overdue, now we define our database schema so we can finally build our database, and not just move it around. 2017-12-01 10:14:22 +01:00
KevinMidboe 56405e54f9 Downgraded from sqlite3 to sqlite because of connection function error. 2017-08-23 10:26:23 +02:00
KevinMidboe 47aa638fd8 Moved eveything related to the api to a seperate folder seasoned_api. 2017-08-06 16:45:02 +02:00