aboutsummaryrefslogtreecommitdiffstats
path: root/app_test.py (unfollow)
Commit message (Collapse)AuthorLines
2018-03-14Add payment info for resources, and two more resourcesGravatar Gareth Coles-9/+74
* Code Combat * Corey Schafer's Python tutorials playlist
2018-03-13Datadog TCP loggingGravatar Gareth Coles-2/+28
2018-03-13Remove unused importGravatar Gareth Coles-2/+0
2018-03-13Update info section with an indexGravatar Gareth Coles-9/+50
2018-03-13Minor bugfix to allow tag.delete to return success as False if the tag ↵Gravatar Leon Sandøy-5/+8
doesn't exist
2018-03-10Logging fixesGravatar Gareth Coles-3/+3
2018-03-10Logging with PapertrailGravatar Gareth Coles-2/+22
2018-03-07removes gunicorn config as it is no longer being used (#39)Gravatar Christopher Baklid-46/+0
2018-03-06API for tags (#34)Gravatar Leon Sandøy-79/+254
* Help page and misc improvements Committing so I can go home >:| * [WIP] - API improvements for the tag features. Not completed. * renaming tag.py to tags.py and refactoring the nomenclature of docs to tags * fixed error message in tags, cleaning up app_test.py * tests for the tags feature * ignoring jsonify returns cause coverall can't handle them * Catch-all error view for the API blueprint * cleaning up APIErrorView a little * bringing coverage for tags.py to 100% * how did this get in here? * how did this get in here? ROUND 2 * Removing the 503 database error handling. It's not in use and we should probably rethink that whole custom error handling system anyway. * Converting the tags file to use the @api_params decorator instead of validating manually. Tested with bot staging.
2018-03-04Fix user API testGravatar Gareth Coles-6/+6
2018-03-04Fixes for the API validation decoratorGravatar Gareth Coles-6/+10
2018-03-04Info pages #13xan #13xak (#36)Gravatar Gareth Coles-57/+351
* Info pages and templates * Info pages and templates * Info pages and templates * Update navigation and fix up HTML * Navigation HTML spacing for readability * Fix error views not using `self.render()` * `render()` method should accept Any for context values * Change header linking CSS to a dedicated class * Rules page * Basic resources page setup * Fix headers for new CSS class * Resource categories and initial resource data * Add link to JSON file on GH - won't work until the branch is merged * Remove info overview page and redirect info root url to resources * Flake8 * Add some tests * Line lengths
2018-03-03Fix navbar dropdownGravatar Gareth Coles-8/+8
2018-03-03Mobile optimisation (#33)Gravatar Joseph-90/+121
* Fix squished logo & button * Hide terminal on mobile * A misc set of fixes * Newline in window.css * Add extra_head block to base template * Move script/CSS loading to extra_head block in error view * Move terminal JS into window.onload * Replace `var` with `let` and enable strict mode in 500.js * Stop typewriter when the terminal is closed * Move terminal onclick assignment to 500.js * Move error page <style> contents into window.css * Tidy up error page HTML and remove unmatched tags
2018-03-01Switch type from NotFound to HTTPException & add post support to 5XX and 4XXGravatar JoeBanks13-2/+26
2018-03-01Gdude got nit picky and made me change the Mac OS terminal to say it's on MacGravatar JoeBanks13-1/+1
2018-03-01Change 418 error descriptionGravatar JoeBanks13-1/+1
2018-03-01Add safe so it is not escapedGravatar JoeBanks13-1/+1
2018-03-01noscript should use templated errorGravatar JoeBanks13-1/+1
2018-03-01OpenGraph metadata (#32)Gravatar Joseph-18/+25
Better embedding for the url to the site.
2018-03-01Fix spacing issuesGravatar JoeBanks13-2/+2
2018-03-01Instead of making flask error when rendering unsupported status codes just ↵Gravatar JoeBanks13-1/+4
send 500
2018-03-01Change link to enclose more textGravatar JoeBanks13-7/+6
2018-03-01Change color of windowGravatar JoeBanks13-1/+1
2018-03-01Finish up #31 by adding linksGravatar JoeBanks13-9/+8
2018-03-01Darken background of muted error headerGravatar JoeBanks13-1/+5
2018-03-01Close window by hitting red buttonGravatar JoeBanks13-296/+301
2018-02-28Quick patch to prevent title from always being 'Internal server error'Gravatar JoeBanks13-1/+1
2018-02-28Add error messages (#30)Gravatar Joseph-34/+1089
* Add error messages Signed-off-by: JoeBanks13 <[email protected]> * Remove un-used keyword arg from 404 * Assert for status code instead of full content * PEP8 * test lint * please coverage * oh * Exclude websockets.py from coverage * Move code output into terminal * Switch typewriter href protocol * Add tests for websockets.py * Abort previous commit, coveralls did not let coverage go down * Add more pauses and request => response * move css and js out, add typewriter JS to our own repo & add method for appending text in bulk. * Enable REPL on 4XX and change error descriptions * commas * /error path
2018-02-27reduce memory allocation from 2GB to 512MB (#28)Gravatar Christopher Baklid-1/+1
2018-02-27[Travis] Build only masterGravatar Gareth Coles-0/+4
2018-02-27Fix unit testGravatar Gareth Coles-3/+3
2018-02-27Move `/help` to `/info/help`Gravatar Gareth Coles-6/+7
2018-02-26fixes the coverage badge to point to the master branch (#29)Gravatar Christopher Baklid-1/+1
2018-02-26remove snekchek and replace with flake8 (#27)Gravatar Christopher Baklid-8/+2
2018-02-26Help page #z62n (#25)Gravatar Gareth Coles-15/+533
* Help page and misc improvements Committing so I can go home >:| * Changes for @lmn * Rephrase first paragraph * Rephrase questions so they aren't all about discord.py * Remove _every single header_ on the help page from the nav * Unit test the help route * Small styling fixes * Add page-specific classes to body element * Clean up section padding * IndexView -> HelpView * Remove unnecessary path in test
2018-02-26brings coverage to 90% (#24)Gravatar Christopher Baklid-45/+257
* brings coverage to 75% * satisfy flake8 * missing docstring added * one more test * artificially inflate coverage because python acts strange * testing decorators * fixed instantiation of test route * straggling newlines from debugging code * remove debug comments * restructure tests into logical class separations. more exlusions. more tests * testing websocket echo tests * added missing comment * convert single quotes to double quotes to satisfy docstrings
2018-02-21New banner!Gravatar Gareth Coles-1/+1
2018-02-21Actually make the button link to the inviteGravatar Gareth Coles-1/+1
2018-02-21Remove extra buttonsGravatar Gareth Coles-13/+0
2018-02-21More landing page work. Also: Blurple!Gravatar Gareth Coles-21/+9651
2018-02-21Index page proseGravatar Gareth Coles-9/+12
2018-02-21Smaller navbar, move dropdown to the bottom of the navbarGravatar Gareth Coles-6/+9
2018-02-21Dropdown instead of dropbarGravatar Gareth Coles-1/+1
2018-02-21Disable dropbar pushGravatar Gareth Coles-1/+1
2018-02-21Sample pushing dropbar navGravatar Gareth Coles-11/+42
2018-02-21Better pre-release warning on indexGravatar Gareth Coles-9/+6
2018-02-21Basic main page heroGravatar Gareth Coles-2/+26
2018-02-21Add warning about pre-release-ness to base templateGravatar Gareth Coles-7/+10
2018-02-21Jinja is weirdGravatar Gareth Coles-8/+10