Skip to content

Instantly share code, notes, and snippets.

@s0undt3ch
s0undt3ch / pytest-output.txt
Last active November 7, 2023 17:26
Explain Pytest Assertion With Expected Data Last as Opposed to First
===================================================================================================== FAILURES ======================================================================================================
________________________________________________________________________________________________ test_expected_first ________________________________________________________________________________________________
def test_expected_first():
expected = {
"one": 1,
"two": 2,
}
ret = {
"one": 1,
[[package]]
category = "main"
description = "Python<->ObjC Interoperability Module"
name = "pyobjc"
optional = false
python-versions = "*"
version = "5.1.2"
[package.dependencies]
pyobjc-core = "5.1.2"
codecov:
token: uuid # Your private repository token
url: "http" # for Codecov Enterprise customers
slug: "owner/repo" # for Codecov Enterprise customers
branch: master # override the default branch
bot: username # set user whom will be the consumer of oauth requests
ci: # Custom CI domains if Codecov does not identify them automatically
- ci.domain.com
- !provider # ignore these providers when checking if CI passed
# ex. You may test on Travis, Circle, and AppVeyor, but only need
@s0undt3ch
s0undt3ch / echo.js
Last active September 20, 2017 13:28 — forked from whiteinge/echo.js
Verbose node.js websocket logging server
/**
* npm install express
* npm install console-stamp
*
* To run:
* node echo.js
*/
const express = require('express');
const http = require('http');
{
repository(owner:"buildbot", name:"buildbot") {
pullRequest(number: 3320) {
title
body
author {
login
}
commits(last: 100) {
totalCount
@s0undt3ch
s0undt3ch / openpgp.txt
Created January 22, 2017 01:34
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d2908fb3a823b0fab3bd21f5bb36bf6584a298ff]

Keybase proof

I hereby claim:

  • I am s0undt3ch on github.
  • I am s0undt3ch (https://keybase.io/s0undt3ch) on keybase.
  • I have a public key ASAB3ycU2ZAKzmnNo8278CsjXOdTJjB2GVllcjpCXKr_DAo

To claim this, I am signing this object:

@s0undt3ch
s0undt3ch / plugins.txt
Created October 17, 2015 00:45
PyTest Plugins of interest
https://pypi.python.org/pypi/pytest-capturelog
https://pypi.python.org/pypi/pytest-catchlog
https://pypi.python.org/pypi/pytest-contextfixture
https://pypi.python.org/pypi/pytest-curl-report
https://bitbucket.org/pytest-dev/pytest-curl-report
https://github.com/splbio/pytest-doc ?
https://pypi.python.org/pypi/pytest-httpbin ( for requests done right )
https://pypi.python.org/pypi/pytest-instafail
https://pypi.python.org/pypi/pytest-raisesregexp
https://pypi.python.org/pypi/pytest-services
@s0undt3ch
s0undt3ch / cassandra.service
Created September 18, 2015 14:01
CentOS 7 Cassandra systemd service file
# /usr/lib/systemd/system/cassandra.service
[Unit]
Description=Cassandra
After=network.target
[Service]
PIDFile=/var/run/cassandra/cassandra.pid
User=cassandra
Group=cassandra
Setting up libidn11:amd64 (1.25-2) ...
Setting up wget (1.13.4-3) ...
/bin/sh: 1: \: not found
Error build: The command [/bin/sh -c apt-get update; apt-get install -y -o DPkg::Options::=--force-confold wget; \] returned a non-zero code: 127
The command [/bin/sh -c apt-get update; apt-get install -y -o DPkg::Options::=--force-confold wget; \] returned a non-zero code: 127