@@ -84,7 +84,7 @@ Create next structure in the project root directory. All files are empty. That's
84
84
85
85
Initial project layout:
86
86
87
- .. code-block :: bash
87
+ .. code-block :: text
88
88
89
89
./
90
90
├── movies/
@@ -109,7 +109,7 @@ Now it's time to install the project requirements. We will use next packages:
109
109
110
110
Put next lines into the ``requirements.txt `` file:
111
111
112
- .. code-block :: bash
112
+ .. code-block :: text
113
113
114
114
dependency-injector
115
115
pyyaml
@@ -134,7 +134,7 @@ We will create a script that creates database files.
134
134
First add the folder ``data/ `` in the root of the project and then add the file
135
135
``fixtures.py `` inside of it:
136
136
137
- .. code-block :: bash
137
+ .. code-block :: text
138
138
:emphasize-lines: 2-3
139
139
140
140
./
@@ -205,13 +205,13 @@ Now run in the terminal:
205
205
206
206
You should see:
207
207
208
- .. code-block :: bash
208
+ .. code-block :: text
209
209
210
210
OK
211
211
212
212
Check that files ``movies.csv `` and ``movies.db `` have appeared in the ``data/ `` folder:
213
213
214
- .. code-block :: bash
214
+ .. code-block :: text
215
215
:emphasize-lines: 4-5
216
216
217
217
./
@@ -289,7 +289,7 @@ After each step we will add the provider to the container.
289
289
290
290
Create the ``entities.py `` in the ``movies `` package:
291
291
292
- .. code-block :: bash
292
+ .. code-block :: text
293
293
:emphasize-lines: 10
294
294
295
295
./
@@ -356,7 +356,7 @@ Let's move on to the finders.
356
356
357
357
Create the ``finders.py `` in the ``movies `` package:
358
358
359
- .. code-block :: bash
359
+ .. code-block :: text
360
360
:emphasize-lines: 11
361
361
362
362
./
@@ -465,7 +465,7 @@ The configuration file is ready. Move on to the lister.
465
465
466
466
Create the ``listers.py `` in the ``movies `` package:
467
467
468
- .. code-block :: bash
468
+ .. code-block :: text
469
469
:emphasize-lines: 12
470
470
471
471
./
@@ -613,7 +613,7 @@ Run in the terminal:
613
613
614
614
You should see:
615
615
616
- .. code-block :: plain
616
+ .. code-block :: text
617
617
618
618
Francis Lawrence movies:
619
619
- Movie(title='The Hunger Games: Mockingjay - Part 2', year=2015, director='Francis Lawrence')
@@ -752,7 +752,7 @@ Run in the terminal:
752
752
753
753
You should see:
754
754
755
- .. code-block :: plain
755
+ .. code-block :: text
756
756
757
757
Francis Lawrence movies:
758
758
- Movie(title='The Hunger Games: Mockingjay - Part 2', year=2015, director='Francis Lawrence')
@@ -868,7 +868,7 @@ Run in the terminal line by line:
868
868
869
869
The output should be similar for each command:
870
870
871
- .. code-block :: plain
871
+ .. code-block :: text
872
872
873
873
Francis Lawrence movies:
874
874
- Movie(title='The Hunger Games: Mockingjay - Part 2', year=2015, director='Francis Lawrence')
@@ -888,7 +888,7 @@ We will use `pytest <https://docs.pytest.org/en/stable/>`_ and
888
888
889
889
Create ``tests.py `` in the ``movies `` package:
890
890
891
- .. code-block :: bash
891
+ .. code-block :: text
892
892
:emphasize-lines: 13
893
893
894
894
./
@@ -977,7 +977,7 @@ Run in the terminal:
977
977
978
978
You should see:
979
979
980
- .. code-block ::
980
+ .. code-block ::text
981
981
982
982
platform darwin -- Python 3.10.0, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
983
983
plugins: cov-3.0.0
0 commit comments