This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file is adapted from h11's example client | |
| # See https://github.com/python-hyper/h11/blob/master/examples/basic-client.py | |
| import socket | |
| import ssl | |
| import h11 | |
| class Client: | |
| def __init__(self, host): | |
| self.conn = h11.Connection(our_role=h11.CLIENT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pytest import fixture | |
| from graphene.test import Client | |
| @fixture(scope="session") | |
| def _schema(): | |
| raise NotImplementedError( | |
| "You must implement this fixture yourself." | |
| "It should return an instance of `graphene.Schema`" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import enum | |
| from eve import Eve | |
| from sqlalchemy import Column, Integer, Enum | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from eve_sqlalchemy import SQL | |
| from eve_sqlalchemy.config import DomainConfig, ResourceConfig | |
| from eve_sqlalchemy.validation import ValidatorSQL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| # When you type 'up' the first time, it's always updated | |
| config.vm.provision 'update', type: 'shell', inline: "apt-get update;apt-get -yq upgrade" | |
| # When you provision the machine, you're asked whether you want to update it | |
| if ARGV.include?('up') or ARGV.include?('reload') or ARGV.include?('resume') and ARGV.include?('--provision') or ARGV.include?('provision') |
NewerOlder