Skip to content

Instantly share code, notes, and snippets.

View briggleman's full-sized avatar

Ben Riggleman briggleman

View GitHub Profile
@briggleman
briggleman / tartiflette with cors.py
Last active January 9, 2024 19:04
example of setting up graphql with tartiflette and cors
import os
import logging
import logging.config
import aiohttp_cors
from aiohttp import web
from tart_test.helpers import config
from tartiflette_aiohttp import register_graphql_handlers
import pytest
from unittest import mock
@pytest.fixture(autouse=True)
def mock_boto():
# change to the directory where boto3 is being called
with mock.patch("reward.lib.aws.boto3") as mocked:
yield mocked
@briggleman
briggleman / gitlab-ci.yml
Last active August 6, 2024 20:48
Example of semantic versioning w/ gitlab ci/cd and semrel
# example ci/cd file for gitlab ci/cd w/ poetry
# this file will run tests on merge and will bump
# the version on commit to master using go-semrel
# go-semrel commits will trigger a final test for
# the code coverage pipeline. this file ensures
# both the pipeline badge and coverage badge are
# populated and that the pyproject.toml file is
# bumped as well
stages:
- test