Skip to content

Commit 4bd10bc

Browse files
author
Shai Geva
committed
Simplify project
1 parent 3a40d22 commit 4bd10bc

28 files changed

+39
-358
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ __pycache__
2424

2525
.coverage
2626
.env
27+
28+
# pyenv
29+
.python-version

Pipfile

-19
This file was deleted.

Pipfile.lock

-250
This file was deleted.

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
11
# Codium code examples
22
These are code examples intended for serving as reference while evaluating Codium.
3+
4+
# How to use
5+
Install packages:
6+
```
7+
pip install -r requirements.txt
8+
```
9+
10+
# What to test
11+
Try creating tests for these files:
12+
```
13+
src/bank_account/bank_account.py
14+
src/colors/colors.py
15+
```
16+
17+
# Run sanity tests
18+
These are sanity tests that make sure the envirmont is set up correctly.
19+
The don't check anything, just make sure imports work.
20+
21+
```
22+
pytest
23+
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from .bank_account import BankAccount
2+
3+
def test_bank_account_env_setup_correct():
4+
"""
5+
This is a sanity test to make sure that imports and paths work.
6+
Just create an instance of the class.
7+
"""
8+
BankAccount("foo bar", True)
File renamed without changes.
File renamed without changes.

src/colors/colors.py examples/colors/colors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import absolute_import, print_function
22
import sys
33

4-
from src.colors.colors_utils import *
4+
from examples.colors.colors_utils import *
55

66
_PY2 = sys.version_info[0] == 2
77

File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from .colors import to_terminal_color
22

3-
def test_to_terminal_color():
3+
def test_to_terminal_color_env_setup_correct():
44
"""
55
This is a sanity test to make sure that imports and paths work.
6+
Just run the function.
67
"""
7-
assert to_terminal_color("foo", fg="red") == "\x1b[31mfoo\x1b[0m"
8+
to_terminal_color("foo", fg="red")
File renamed without changes.

requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pytest
2+
text-unidecode == 1.3
3+
Unidecode == 1.1.1

src/bank_account/README.md

Whitespace-only changes.

src/bank_account/test_bank_account.py

-5
This file was deleted.

tools/reinstall_pipenv_packages.sh

-4
This file was deleted.

tools/reinstall_pipenv_packages_no_cache.sh

-4
This file was deleted.

tools/run_format_file.sh

-6
This file was deleted.

tools/run_format_lint.sh

-8
This file was deleted.

tools/run_lint_watch.sh

-10
This file was deleted.

tools/run_tests.sh

-8
This file was deleted.

tools/run_tests_print_output.sh

-6
This file was deleted.

tools/run_tests_specify_single_file.sh

-5
This file was deleted.

0 commit comments

Comments
 (0)