I hereby claim:
- I am guilatrova on github.
- I am latrova (https://keybase.io/latrova) on keybase.
- I have a public key whose fingerprint is 73B4 2719 C3A1 3957 B0BC 688D 3EB9 DFEB EA17 FB67
To claim this, I am signing this object:
<!-- Coding styles --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/highlight.min.js" integrity="sha512-z+/WWfyD5tccCukM4VvONpEtLmbAm5LDu7eKiyMQJ9m7OfPEDL7gENyDRL3Yfe8XAuGsS2fS4xSMnl6d30kqGQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | |
<!-- For the highlight badge --> | |
<script src="https://unpkg.com/highlightjs-badge/highlightjs/highlight.pack.js"></script> | |
<script src="https://unpkg.com/highlightjs-badge/highlightjs-badge.min.js"></script> | |
<script> | |
hljs.initHighlightingOnLoad(); | |
document.addEventListener("DOMContentLoaded", (event) => { |
locals { | |
ecr_name = "ecrname" | |
ecs_cluster_name = "clustername" | |
application_name = "appname" | |
} | |
resource "aws_ecr_repository" "ecr" { | |
name = local.ecr_name | |
image_tag_mutability = "MUTABLE" |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v3.4.0 | |
hooks: | |
- id: end-of-file-fixer | |
- id: trailing-whitespace | |
- repo: https://github.com/psf/black | |
rev: 21.11b1 | |
hooks: | |
- id: black |
I hereby claim:
To claim this, I am signing this object:
... | |
node_modules | |
#dist folder | |
#dist <- Commented, you can remove this line if you will | |
# IDEA/Webstorm project files | |
.idea | |
*.iml | |
... |
web: node server.js |
def test_list_url_only_allows_get_and_post(self): | |
resolver = self.resolve_by_name('transactions') | |
self.assert_has_actions(['get', 'post'], resolver.func.actions) | |
def test_single_url_allows_all_methods_except_post(self): | |
"""All methods are: GET, PUT, PATCH and DELETE""" | |
resolver = self.resolve_by_name('transaction', pk=1) | |
self.assert_has_actions(['get', 'put', 'patch', 'delete'], resolver.func.actions) |
from django.test import TestCase | |
from django.urls import reverse, resolve | |
from transactions.views import TransactionViewSet | |
class TransactionsUrlsTestCase(TestCase): | |
def test_resolves_list_url(self): | |
resolver = self.resolve_by_name('transactions') | |
from django.conf.urls import url | |
from django.conf.urls import url, include | |
from django.contrib import admin | |
urlpatterns = [ | |
url(r'^admin/', admin.site.urls), | |
url(r'^transactions/', include('transactions.urls')) | |
] |
from django.db import models | |
from django.contrib.auth.models import User | |
class Transaction(models.Model): | |
description = models.CharField(max_length=100) | |
value = models.DecimalField(max_digits=5, decimal_places=2) | |
user = models.ForeignKey(User) |