semvec/pypi-packages huggingface dataset:
VTunit 0.0.1a0
Unit test helper
Requires Python: >=2.7

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=vtunr_VTunit&metric=alert_status)](https://sonarcloud.io/dashboard?id=vtunr_VTunit)

# VTunit

This is a unit test/mock framework based on Unity and fff, aimed for embedded developers.

# Installation 

Install the package with pip

* `pip install -e git+https://github.com/vtunr/VTunit.git#egg=VTunit`
* `pip install -e .` if you clone the repository (for development purpose)

## Package to install (if you choose local build)

On ubuntu/WSL :

* `sudo apt-get install cmake ninja-build ruby`
* You'll also need `universal_ctag` :
```
git clone https://github.com/universal-ctags/ctags.git
cd ctags
./autogen.sh 
./configure
make
sudo make install
``` 

# Setup unit test for a project

* `python -m  vtunit {path_unit_test} init`

# Creating a new unit test

* `python -m vtunit {path_unit_test} new --file_name {my_file_name.c}`

It will generate into the test folder:
* `test_{file_to_test}.c`
* `test_{file_to_test}.cmake`

You then need to add the c file you want to compile for your test in the `test_{file_to_test}.cmake`.

You can also add include in `include.cmake`

# Automatic mocking

You can automatically mock header.

You just need to add `mock_` prefix to the header you want to include :

`#include "mock_my_header.h"`

`#include "mock_my_folder/my_header.h"`

# Prebuild / Postbuild

There is a way to run command before and after build (not after run)

You need to add :

* `list(APPEND PREBUILD_CMD && cmd_you_want)` in `prebuild.cmake`
* `list(APPEND POSTBUILD_CMD && cmd_you_want)` in `postbuild.cmake`

# Running test

Running in WSL or linux : 

* If you want to force calling cmake (need to be done once before calling `run`): `python -m vtunit {path_unit_test} build --clean_all --cmake`
* Then to build and run : `python -m vtunit {path_unit_test} build --run`
* To clean : `python -m vtunit {path_unit_test} build --clean`

You can also filter the test you want to run :

* To list : `python -m vtunit {path_unit_test} build --list --filter {my_regex}` (optional `--filter`)
* To filter : `python -m vtunit {path_unit_test} build --run --filter {my_regex}`

You can also ignore prebuild/postbuild command by adding `--ignore_prebuild` and `--ignore_postbuild`

# TODO :

* Improve argparse
* Add possibility to run it in a docker container
django-smarturlfield 1.1.1
Django model and form fields that performs URL normalization. For example it adds 'http://' prefix and forces punicode encoding.
Keywords: django,django-fields,url

====================
django-smarturlfield
====================

Django model and form fields that performs URL normalization. For example it adds `'http://'` prefix and forces punicode encoding.
There are also fields that stores a list of URLs.

Tested with Django 3.0.x (should also work for 2.x)

.. image:: https://travis-ci.org/shantilabs/django-smarturlfield.svg?branch=master
   :target: https://travis-ci.org/shantilabs/django-smarturlfield
   :alt: Travis-CI build status

Installing
==========

    $ pip install django-smarturlfield


Fields
======

**SmartURLFormField** renders as `<input>` and can handle values like this:
 
  - ``http://example.com``
  - `example.com` (normalized to ``http://example.com``)
  - `земфира.рф` (normalized to ``http://xn--80ajfftz0a.xn--p1ai``)

**MultipleSmartURLFormField** renders as `<textarea>` and can store multiple URLs separated by newline.


Usage
=====

In forms:

.. code-block:: python

    from smarturlfield import SmartURLFormField, MultipleSmartURLFormField

    class MyForm(forms.Form):
      url = SmartURLFormField()
      url_list = MultipleSmartURLFormField()  # textarea
      # ...

In models:

.. code-block:: python

    from smarturlfield import SmartURLDbField, MultipleSmartURLDbField

    class MyModel(models.Model):
        url = SmartURLDbField()
        url_list = MultipleSmartURLDbField()  # textarea
        # ...
postscriptumno-brain-games 0.1.16
Brain games project
Requires Python: >=3.8,<4.0

# python-project-lvl1

[![Maintainability](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/test_coverage)](https://codeclimate.com/github/codeclimate/codeclimate/test_coverage)
[![Build Status](https://travis-ci.org/postscriptumno/python-project-lvl1.svg?branch=master)](https://travis-ci.org/postscriptumno/python-project-lvl1)

## Installing command

pip3 install --index-url <https://test.pypi.org/simple> --extra-index-url <https://pypi.org/simple> postscriptumno-brain-games

### Brain-even

[![asciicast](https://asciinema.org/a/XTWAUeLM5LwAr50LzE0nPhQrv.svg)](https://asciinema.org/a/XTWAUeLM5LwAr50LzE0nPhQrv)

### Brain-calc

[![asciicast](https://asciinema.org/a/TC4VwapXY6QXU4JhePMjsrie1.svg)](https://asciinema.org/a/TC4VwapXY6QXU4JhePMjsrie1)

### Brain-progression

[![asciicast](https://asciinema.org/a/dDOOgbLGx6bG1thsVgqZRbHlY.svg)](https://asciinema.org/a/dDOOgbLGx6bG1thsVgqZRbHlY)

### Brain-gcd

[![asciicast](https://asciinema.org/a/NgR2pi5QplmaTSUGOFw6mgble.svg)](https://asciinema.org/a/NgR2pi5QplmaTSUGOFw6mgble)

### Brain-prime

[![asciicast](https://asciinema.org/a/0RUGPdJhJObEYpKowc0O2bK4m.svg)](https://asciinema.org/a/0RUGPdJhJObEYpKowc0O2bK4m)