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
param ( | |
[string[]]$commands | |
) | |
# Fonction pour exécuter pytest avec les options spécifiées | |
function Run-Pytest { | |
pytest -vv --gherkin-terminal-reporter --durations=10 --cov-report term-missing --cov-report html --cov=XXXXXX | |
} | |
# Fonction pour exécuter pytest pour les features BDD |
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 __future__ import annotations | |
import re | |
from dataclasses import dataclass | |
from datetime import datetime | |
from typing import ClassVar, Final | |
from urllib.parse import urljoin | |
import httpx | |
@dataclass |
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 qrcode | |
website_link = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | |
qr = qrcode.QRCode(version = 1, box_size = 5, border = 5) | |
qr.add_data(website_link) | |
qr.make() | |
img = qr.make_image(fill_color = 'black', back_color = 'white') | |
img.save('youtube_qr.png') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 pathlib import Path | |
import ftplib | |
from pytest_mock import MockerFixture | |
import pytest | |
class FTPClient: | |
def __init__(self) -> None: | |
self.ftp: ftplib.FTP = ftplib.FTP() |
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
class JSONConverter: | |
@classmethod | |
def json_dumps(cls, obj) -> str: | |
return str(cls._json_dumps(obj)) | |
@classmethod | |
def _json_dumps(cls, obj): | |
if isinstance(obj, list): | |
return [cls._json_dumps(el) for el in obj] | |
elif isinstance(obj, dict): |
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 dataclasses import dataclass | |
import sys | |
import time | |
from typing import Any, ClassVar, Dict, List | |
import asyncio | |
from gql import gql, Client, AIOHTTPTransport | |
from graphql.language.ast import DocumentNode | |
@dataclass |
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 collections import defaultdict | |
from pathlib import Path | |
from typing import ClassVar, DefaultDict, List, Tuple | |
import csv | |
import re | |
class Book: | |
'''Class representing a book w/ some of the metadata available | |
in the safari-annotations-export.csv file |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python3 | |
''' | |
@desc Simple MongoDB Client class. Offers the entire API | |
of AsyncioMotorCollection. | |
@author SDQ <[email protected]> | |
@version 1.0.0 | |
@date 2020-02-17 | |
@note 1.0.0 (2020-02-17) : First functional version | |
''' | |
from typing import Any, Optional |
NewerOlder