• Avengers Endgame. I’ve never been a fan of comic book movies. This one had a ton of hype, almost Avatar level. It was average. There is a lot of time travelling and then a big fight and they knock some stones off his glove and win. Who could have predicted such a shocking, unlikely ending.
    • PW: some cool app ideas to practice skills: https://medium.freecodecamp.org/here-are-some-app-ideas-you-can-build-to-level-up-your-coding-skills-39618291f672.
    • Supercontest.
      • Unittests.
        • Had to `sudo systemctl restart postgresql` on my host before running the unittests. Remember, it requires an existing supercontest_unittests db. And remember, I do dev on this laptop as well, so postgresql doesn’t start on boot on my host (it would conflict with docker since I use default ports). Laptop must have died at some point.
        • Used spoof_lines and spoof_scores to populate the test db.
        • Had to install chromedriver on my host (unfortunate dep of the test now, I can fix later but it’s not urgent).
        • Added selenium capability to the tests so that I can actually check the data in the dom after js runs. I don’t do any click functionality to test registration or anything, just verification of the route APIs.
        • Changed to LiveServerTestCase from flask-testing so that I could use selenium. self.get_server_url is offered now. This slows down the tests a bit.
        • Loving selenium so far for unittests. Load a page, submit for data, click buttons, check results.
        • The webdriver API: https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.remote.webdriver. find_element[s]_by_[id,xpath,css_selector,name,class_name,link_text].
        • Changed commit_picks to allow bypass of all checks (on the python app side).
        • Did some color mapping between names and rgba values (which is what selenium returns for the background-color css property).
        • Finished all the python tests that I wanted: user/line/score/pick commit, frontend login, matchup/pick/leaderboard view. Now on to eslint and jasmine for the js.
      • Docker
        • There’s an image on dockerhub with python/chromedriver/chrome/selenium: joyzourski/python-chromedriver. Switched to that instead of basing off python and installing the webdriver functionality manually in the dockerfile.