Skip to content

Commit 8814f13

Browse files
committed
Fix: rm factories from tests
1 parent c2217f7 commit 8814f13

File tree

3 files changed

+2
-95
lines changed

3 files changed

+2
-95
lines changed

requirements-common.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jellyfish==1.0.4 # String Matching
1818
Jinja2==3.1.6 # template engine for html files
1919
phonenumbers==8.13.43 # Used for phone number validation
2020
psutil==7.0.0 # psutil is used to determine the number of Hyperion workers
21-
psycopg[binary]==3.1.20 # PostgreSQL adapter for *synchronous* operations at startup (database initializations & migrations)
21+
psycopg[binary]==3.2.10 # PostgreSQL adapter for *synchronous* operations at startup (database initializations & migrations)
2222
pydantic-settings==2.3.4
2323
pydantic==2.7.4
2424
pyjwt[crypto]==2.8.0 # generate and verify the JWT tokens, imported as `jwt`

tests/.env.test

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,3 @@ REDIS_PORT=6379
2828
#REDIS_PASSWORD=""
2929
REDIS_LIMIT=5
3030
REDIS_WINDOW=60
31-
32-
33-

tests/config.test.yaml

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -123,48 +123,6 @@ AUTH_CLIENTS:
123123
#SQLITE_DB: app.db # If set, the application use a SQLite database instead of PostgreSQL, for testing or development purposes (if possible PostgreSQL should be used instead)
124124
DATABASE_DEBUG: False # If True, will print all SQL queries in the console
125125
LOG_DEBUG_MESSAGES: True
126-
NB_WORKERS: 6 # Not yet used...
127-
128-
#############
129-
# Factories #
130-
#############
131-
132-
USE_FACTORIES: True # if True and the database is empty, it will be seeded with mocked data
133-
134-
# Configure demo users, to populate the db with your users
135-
# The Python-expected type is `list[UserDemoFactoryConfig]` where the class `UserDemoFactoryConfig` is from `app.core.utils.config`.
136-
# Thus, the following format should be used in yaml config files:
137-
# ```yml
138-
# FACTORIES_DEMO_USERS
139-
# - firstname: <Firstname>
140-
# name: <Name>
141-
# nickname: <Nickname> (or <null>)
142-
143-
# password: <password>
144-
# groups:
145-
# - <UUID value 1 of a GroupType>
146-
# - <UUID value 2 of a GroupType>
147-
# ```
148-
# Group UUIDs should be values of the GroupType enum from `app.core.groups.groupe_type.GroupType`
149-
FACTORIES_DEMO_USERS:
150-
- firstname: Your Firstname
151-
name: Your Name
152-
nickname: Your Nickname
153-
154-
password: Your_P@$$w0rd
155-
groups:
156-
- 0a25cb76-4b63-4fd3-b939-da6d9feabf28 # admin
157-
- 45649735-866a-49df-b04b-a13c74fd5886 # AE
158-
- 1f841bd9-00be-41a7-96e1-860a18a46105 # eclair
159-
- firstname: Foucauld
160-
name: Bellanger
161-
nickname: Ñool
162-
163-
password: azerty
164-
groups:
165-
- 1f841bd9-00be-41a7-96e1-860a18a46105
166-
- 45649735-866a-49df-b04b-a13c74fd5886
167-
- 4ec5ae77-f955-4309-96a5-19cc3c8be71c
168126

169127
#####################################
170128
# SMTP configuration using starttls #
@@ -185,54 +143,6 @@ SMTP_EMAIL: ""
185143
# This file can be created and downloaded from [Google cloud, IAM and administration, Service account](https://console.cloud.google.com/iam-admin/serviceaccounts) page.
186144
USE_FIREBASE: False
187145

188-
########################
189-
# Matrix configuration #
190-
########################
191-
192-
# Matrix configuration is optional. If configured, Hyperion will be able to send messages to a Matrix server.
193-
# This configuration will be used to send errors messages.
194-
# If the following parameters are not set, logging won't use the Matrix handler
195-
# MATRIX_SERVER_BASE_URL is optional, the official Matrix server will be used if not configured
196-
# Advanced note: Username and password will be used to ask for an access token. A Matrix custom client `Hyperion` is used to make all requests
197-
#MATRIX_SERVER_BASE_URL: "https://matrix.example.org/"
198-
#MATRIX_TOKEN: "mct_..."
199-
#MATRIX_LOG_ERROR_ROOM_ID: "!...:myecl.fr"
200-
#MATRIX_LOG_AMAP_ROOM_ID: ""
201-
202-
#############################
203-
# Token to use the TMDB API #
204-
#############################
205-
206-
# This API key is required in order to send requests to the Internet Movie Database.
207-
# It is only used in the Cinema module.
208-
#THE_MOVIE_DB_API: ""
209-
210-
####################
211-
# S3 configuration #
212-
####################
213-
214-
# S3 configuration is needed to use the S3 storage for MyECLPay logs
215-
216-
#S3_BUCKET_NAME: ""
217-
#S3_ACCESS_KEY_ID: ""
218-
#S3_SECRET_ACCESS_KEY: ""
219-
220-
##############
221-
# Google API #
222-
##############
223-
224-
# Google API configuration #
225-
# Google API is used to upload files to Google Drive
226-
# See ./app/utils/google_api/README.md for more information
227-
#GOOGLE_API_CLIENT_ID: ""
228-
#GOOGLE_API_CLIENT_SECRET: ""
229-
230-
#RAID_DRIVE_REFRESH_TOKEN: ""
231-
#RAID_DRIVE_API_KEY: ""
232-
#RAID_DRIVE_CLIENT_ID: ""
233-
#RAID_DRIVE_CLIENT_SECRET: ""
234-
#RAID_PAYMENT_REDIRECTION_URL: ""
235-
236146
###########################
237147
# HelloAsso configuration #
238148
###########################
@@ -242,7 +152,7 @@ USE_FIREBASE: False
242152
# HELLOASSO_API_BASE should have the format: `api.helloasso-sandbox.com`
243153
# HelloAsso only allow 20 simultaneous active access token. Note that each Hyperion worker will need its own access token.
244154

245-
#HELLOASSO_CONFIGURATIONS: # [["name", "helloasso_client_id", "helloasso_client_secret", "helloasso_slug", "redirection_uri"]]
155+
HELLOASSO_CONFIGURATIONS: {} # [["name", "helloasso_client_id", "helloasso_client_secret", "helloasso_slug", "redirection_uri"]]
246156
# MYECLPAY:
247157
# helloasso_client_id: ...
248158
# helloasso_client_secret: ...

0 commit comments

Comments
 (0)