mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Update the unit test for the subscribed user
This commit is contained in:
parent
377f7668c5
commit
44d34f9090
1 changed files with 4 additions and 1 deletions
|
@ -127,6 +127,8 @@ def test_index_update_big_files(client):
|
||||||
# Arrange
|
# Arrange
|
||||||
state.billing_enabled = True
|
state.billing_enabled = True
|
||||||
files = get_big_size_sample_files_data()
|
files = get_big_size_sample_files_data()
|
||||||
|
|
||||||
|
# Credential for the default_user, who is subscribed
|
||||||
headers = {"Authorization": "Bearer kk-secret"}
|
headers = {"Authorization": "Bearer kk-secret"}
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
|
@ -497,7 +499,8 @@ def get_sample_files_data():
|
||||||
|
|
||||||
|
|
||||||
def get_big_size_sample_files_data():
|
def get_big_size_sample_files_data():
|
||||||
big_text = "a" * (25 * 1024 * 1024) # a string of approximately 25 MB
|
# a string of approximately 100 MB
|
||||||
|
big_text = "a" * (100 * 1024 * 1024)
|
||||||
return [
|
return [
|
||||||
(
|
(
|
||||||
"files",
|
"files",
|
||||||
|
|
Loading…
Add table
Reference in a new issue