File: testconf.markdown

package info (click to toggle)
python-diaspy 0.6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 352 kB
  • sloc: python: 1,600; makefile: 149
file content (52 lines) | stat: -rw-r--r-- 1,438 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
##  Configuration file for `diaspy` test suite (./tests.py)

Developer/tester has to create their own `testconf.py` file 
because it is appended to `.gitignore` to avoid accidental 
upload of personal data.


#### You have to set the variables yourself!
#### Their values have to be valid!

Template file:

    #   Here is a configuration file for test suite for diaspy.
    #   Fill it with correct data.
    #   
    #   Fields are explained in testconf.md file.


    # Your login details
    __pod__ = 'https://pod.example.com'
    __username__ = 'user'
    __passwd__ = 'password'


    # D* identifiers
    diaspora_id = 'user@pod.example.com'
    guid = 'abcdef01234678'


    # Details of your account
    diaspora_name = 'Foo Bar'
    user_names_tuple = ('Foo', 'Bar')
    user_email = 'email@example.com'
    user_location_string = 'Nowhere'
    user_gender_string = 'Gender'
    user_date_of_birth = (2013, 9, 7)
    # remember about language you've set!
    user_date_of_birth_named = (2013, 'September', 7)
    user_is_searchable = True
    user_is_nsfw = False
    # five tags you use to describe yourself (all in lowercase)
    user_tags = ['movies', 'kittens', 'travel', 'teacher', 'newyork']


    # both names are created
    test_aspect_name = 'diaspy-test'

    # but this one will be deletd `by name`
    test_aspect_name_fake = 'diaspy-test-fake'

    # don't change needed for tests to work
    test_aspect_id = -1