Giter VIP home page Giter VIP logo

dnbtestdata's People

Contributors

andrewginns avatar cloveras avatar didierparat avatar hannahelle avatar jonesmabea avatar relekang avatar stiangs avatar tommythorsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dnbtestdata's Issues

Is prod data used to generate test data? And is that ok?

Just out of curiosity I browsed the list of last names and found my name on the list. Being a customer of DnB I couldn't help but think that this list is generated from your list of customers. If it was, is that ok in a post GDPR world? If not, how did you generate or retrieve these names?

Gender is slightly off for some people

Arne is female .. or is he?

$ create_people.py -n 1
[
  {
    "ssn": "01037843751",
    "firstName": "Arne",
    "lastName": "Edvardsen",
    "dateOfBirth": "1978-03-01",
    "gender": "Female",
    "nationality": "Norwegian",
    "address": {
      "street": "Evensengropa 00",
      "postalCode": "8187",
      "city": "Haugland",
      "country": "NO"
    },
    "phoneNumber": "92395941",
    "email": "[email protected]",
    "idType": "passport"
  }
]

I made a branch and tried to make a PR, but it seems I lack permissions*. So, here's a new _NorwegianName for models/person/elements/name.py that does not always select male names:

class _NorwegianName:
    fake = Faker('no_NO')

    @classmethod
    def generate_random_first_name(cls, gender):
        if gender == gender.MALE:
            return cls.fake.first_name_male()
        elif gender == gender.FEMALE:
            return cls.fake.first_name_female()
        else:
            raise Exception()

    @classmethod
    def generate_random_last_name(cls):
        return cls.fake.last_name()

*: Permission error:

$  git push --set-upstream origin not-all-arnes-are-female
remote: Permission to DNBbank/dnbtestdata.git denied to cloveras.
fatal: unable to access 'https://github.com/DNBbank/dnbtestdata.git/': The requested URL returned error: 403

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.